about summary refs log tree commit diff
path: root/wcsmbs
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wcsdup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wcsmbs/wcsdup.c b/wcsmbs/wcsdup.c
index addbdda2e2..3d676ca704 100644
--- a/wcsmbs/wcsdup.c
+++ b/wcsmbs/wcsdup.c
@@ -33,7 +33,5 @@ wcsdup (s)
   if (new == NULL)
     return NULL;
 
-  memcpy (new, (void *) s, len);
-
-  return (wchar_t *) new;
+  return (wchar_t *) memcpy (new, (void *) s, len);
 }