summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-01-21 16:52:12 +0000
committerRichard M. Stallman <rms@gnu.org>1994-01-21 16:52:12 +0000
commitd97342f3aa02f4bd428c4d178520bf5ece8372e8 (patch)
tree8d52d1b3c2621bb724ea33f06c0a134377e86482 /lwlib
parent85de16120a77a60873bb3e3b6eeec1ed59fc32f5 (diff)
downloademacs-d97342f3aa02f4bd428c4d178520bf5ece8372e8.tar.gz
*** empty log message ***
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/xlwmenu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index 4d4efd4a01c..f317fc43338 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -245,7 +245,10 @@ resource_widget_value (XlwMenuWidget mw, widget_value* val)
if (!resourced_name)
resourced_name = val->name;
if (!val->value)
- complete_name = (char *) strdup (resourced_name);
+ {
+ complete_name = (char *) XtMalloc (strlen (resourced_name) + 1);
+ strcpy (complete_name, resourced_name);
+ }
else
{
int complete_length =