aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/FSWrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/FSWrap.c')
-rw-r--r--nx-X11/lib/X11/FSWrap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/FSWrap.c b/nx-X11/lib/X11/FSWrap.c
index df65654a9..043e5dc3a 100644
--- a/nx-X11/lib/X11/FSWrap.c
+++ b/nx-X11/lib/X11/FSWrap.c
@@ -85,10 +85,9 @@ _XParseBaseFontNameList(
if (!*str)
return (char **)NULL;
- if (!(ptr = Xmalloc((unsigned)strlen(str) + 1))) {
+ if (!(ptr = strdup(str))) {
return (char **)NULL;
}
- strcpy(ptr, str);
psave = ptr;
/* somebody who specifies more than XMAXLIST basefontnames will lose */