aboutsummaryrefslogtreecommitdiff
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 addbdda..3d676ca 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);
}