aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/lcPubWrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/lcPubWrap.c')
-rw-r--r--nx-X11/lib/X11/lcPubWrap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/lcPubWrap.c b/nx-X11/lib/X11/lcPubWrap.c
index d1096d570..3119918c6 100644
--- a/nx-X11/lib/X11/lcPubWrap.c
+++ b/nx-X11/lib/X11/lcPubWrap.c
@@ -78,10 +78,9 @@ _XlcCreateLC(
return (XLCd) NULL;
if (lcd->core->name == NULL) {
- lcd->core->name = Xmalloc(strlen(name) + 1);
+ lcd->core->name = strdup(name);
if (lcd->core->name == NULL)
goto err;
- strcpy(lcd->core->name, name);
}
if (lcd->methods == NULL)