From 4a51ddbba053ae5b864475de77f9a4511d70d73a Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 14 Mar 2012 12:54:31 -0400 Subject: Fix segfaults when changing the text of a backed internationaled text widget Same fix appeared in libXaw as part of XFree86 4.3.0.1. Fixes: http://gnats.netbsd.org/37610 Reviewed-by: Jeremy Huddleston Signed-off-by: Matt Turner --- src/MultiSrc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/MultiSrc.c') diff --git a/src/MultiSrc.c b/src/MultiSrc.c index b53fa50..1ac3283 100644 --- a/src/MultiSrc.c +++ b/src/MultiSrc.c @@ -728,6 +728,7 @@ SetValues(Widget current, Widget request, Widget new, ArgList args, Cardinal *nu if ( string_set || (old_src->multi_src.type != src->multi_src.type) ) { RemoveOldStringOrFile(old_src, string_set); + src->multi_src.allocated_string = old_src->multi_src.allocated_string; file = InitStringOrFile(src, string_set); /* Load pieces does this logic for us, but it shouldn't. Its messy.*/ -- cgit v1.2.3