New module 'uniconv/u32-strconv-from-locale'.
[gnulib.git] / lib / strnlen1.c
index f74e427..422ed9e 100644 (file)
@@ -28,7 +28,7 @@
 size_t
 strnlen1 (const char *string, size_t maxlen)
 {
-  const char *end = memchr (string, '\0', maxlen);
+  const char *end = (const char *) memchr (string, '\0', maxlen);
   if (end != NULL)
     return end - string + 1;
   else