Merge "libc: fix memchr implementation" into integration

This commit is contained in:
John Tsichritzis 2019-06-20 12:15:31 +00:00 committed by TrustedFirmware Code Review
commit b73d296d74
1 changed files with 2 additions and 2 deletions

View File

@ -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++;
}