mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
when building the tooltip, ensure the string is zero-terminated
This commit is contained in:
parent
bbac082af5
commit
637d06e37d
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ ensure_tooltip (GtkActionEntry * e)
|
|||
for( src=e->label, tgt=(char*)e->tooltip; *src; ++src )
|
||||
if( *src != '_' )
|
||||
*tgt++ = *src;
|
||||
*tgt++ = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue