projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New modules 'uniconv/u16-strconv-to-enc', 'uniconv/u32-strconv-to-enc'.
[gnulib.git]
/
lib
/
strnlen1.c
diff --git
a/lib/strnlen1.c
b/lib/strnlen1.c
index
f74e427
..
422ed9e
100644
(file)
--- a/
lib/strnlen1.c
+++ b/
lib/strnlen1.c
@@
-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