about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/strndup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/strndup.c b/string/strndup.c
index 3f534427b4..1e17925689 100644
--- a/string/strndup.c
+++ b/string/strndup.c
@@ -49,7 +49,7 @@ __strndup (s, n)
     return NULL;
 
   new[len] = '\0';
-  return memcpy (new, s, len);
+  return (char *) memcpy (new, s, len);
 }
 #ifdef weak_alias
 weak_alias (__strndup, strndup)