diff options
| author | Warner Losh <imp@FreeBSD.org> | 2009-02-07 19:34:44 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2009-02-07 19:34:44 +0000 |
| commit | 0ff7d9b4e9566cf24bac5fc2eecadc2bd158a184 (patch) | |
| tree | 831751b6950db504c57c1c124e866a601f346453 /lib/libc/string | |
| parent | 37ce2656ecc485e9a38169c72d1a64a00f6beb6d (diff) | |
Notes
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/memchr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/memchr.c b/lib/libc/string/memchr.c index 6d7c2fd94e72..d98d85317e5a 100644 --- a/lib/libc/string/memchr.c +++ b/lib/libc/string/memchr.c @@ -45,7 +45,7 @@ memchr(const void *s, int c, size_t n) const unsigned char *p = s; do { - if (*p++ == c) + if (*p++ == (unsigned char)c) return ((void *)(p - 1)); } while (--n != 0); } |
