From 637d06e37d596144bc387504ad7be5b972fca628 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 20 Jul 2007 17:09:15 +0000 Subject: [PATCH] when building the tooltip, ensure the string is zero-terminated --- gtk/actions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/actions.c b/gtk/actions.c index a88f2b590..d33998fa0 100644 --- a/gtk/actions.c +++ b/gtk/actions.c @@ -95,6 +95,7 @@ ensure_tooltip (GtkActionEntry * e) for( src=e->label, tgt=(char*)e->tooltip; *src; ++src ) if( *src != '_' ) *tgt++ = *src; + *tgt++ = '\0'; } }