diff options
Diffstat (limited to 'lib/libXt/src/Functions.c')
-rw-r--r-- | lib/libXt/src/Functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libXt/src/Functions.c b/lib/libXt/src/Functions.c index 9937a50ab..f70553b55 100644 --- a/lib/libXt/src/Functions.c +++ b/lib/libXt/src/Functions.c @@ -211,6 +211,6 @@ String XtNewString(String str) { if (str == NULL) return NULL; - else - return strcpy(__XtMalloc((unsigned)strlen(str) + 1), str); + + return strdup(str); } |