changeset 1167:f8aa853638f0

cast memcpy to char*
author Jim Meyering <jim@meyering.net>
date Sun, 14 Dec 1997 15:12:29 +0000
parents 68c21fa81eef
children c58834e11c55
files lib/strndup.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/strndup.c
+++ b/lib/strndup.c
@@ -43,5 +43,5 @@
     return NULL;
 
   new[n] = '\0';
-  return memcpy (new, s, n);
+  return (char *) memcpy (new, s, n);
 }