diff options
author | John Tsichritzis <john.tsichritzis@arm.com> | 2019-06-20 12:15:31 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2019-06-20 12:15:31 +0000 |
commit | b73d296d747663ecd31caf30ddcebf4a99f39abf (patch) | |
tree | 7e28c8514d5930b6177b7b0edd2e0e75cee90e43 /lib | |
parent | f56734fead96ae3217e767cce037278cf88a602f (diff) | |
parent | 294062fabf885c78d46e3c6e51963d5791b815b2 (diff) | |
download | platform_external_arm-trusted-firmware-b73d296d747663ecd31caf30ddcebf4a99f39abf.tar.gz platform_external_arm-trusted-firmware-b73d296d747663ecd31caf30ddcebf4a99f39abf.tar.bz2 platform_external_arm-trusted-firmware-b73d296d747663ecd31caf30ddcebf4a99f39abf.zip |
Merge "libc: fix memchr implementation" into integration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/memchr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/memchr.c b/lib/libc/memchr.c index 0fe05358b..8cbb71579 100644 --- a/lib/libc/memchr.c +++ b/lib/libc/memchr.c @@ -9,10 +9,10 @@ void *memchr(const void *src, int c, size_t len) { - const char *s = src; + const unsigned char *s = src; while (len--) { - if (*s == c) + if (*s == (unsigned char)c) return (void *) s; s++; } |