(re_match_2_internal): Declare buf_ch unsigned int.
[gnulib.git] / lib / strndup.c
index f4b1f7a..b610e40 100644 (file)
@@ -43,5 +43,5 @@ strndup (s, n)
     return NULL;
 
   new[n] = '\0';
-  return memcpy (new, s, n);
+  return (char *) memcpy (new, s, n);
 }