diff options
author | Matt Turner <mattst88@gmail.com> | 2012-03-14 12:54:31 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-03-29 18:30:24 -0400 |
commit | 4a51ddbba053ae5b864475de77f9a4511d70d73a (patch) | |
tree | 6a76d8335e91eebcb42b989be05b772ae578a31c /src/MultiSrc.c | |
parent | bc0db762873b564d50faac4ab1bf1c85ea586d36 (diff) |
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 <jeremyhu@apple.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/MultiSrc.c')
-rw-r--r-- | src/MultiSrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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.*/ |