diff options
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/wcsdup.c | 4 |
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); } |