diff options
Diffstat (limited to 'sysdeps/generic/memmem.c')
-rw-r--r-- | sysdeps/generic/memmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/memmem.c b/sysdeps/generic/memmem.c index 482ab6aa0b..9e32f517b3 100644 --- a/sysdeps/generic/memmem.c +++ b/sysdeps/generic/memmem.c @@ -36,7 +36,7 @@ memmem (haystack, haystack_len, needle, needle_len) if (needle_len == 0) /* The first occurrence of the empty string is deemed to occur at the beginning of the string. */ - return (void *) &((const char *) haystack); + return (void *) haystack; for (begin = (const char *) haystack; begin <= last_possible; ++begin) if (begin[0] == ((const char *) needle)[0] && |