when building the tooltip, ensure the string is zero-terminated
This commit is contained in:
parent
bbac082af5
commit
637d06e37d
|
@ -95,6 +95,7 @@ ensure_tooltip (GtkActionEntry * e)
|
||||||
for( src=e->label, tgt=(char*)e->tooltip; *src; ++src )
|
for( src=e->label, tgt=(char*)e->tooltip; *src; ++src )
|
||||||
if( *src != '_' )
|
if( *src != '_' )
|
||||||
*tgt++ = *src;
|
*tgt++ = *src;
|
||||||
|
*tgt++ = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue