Fix signedness issues with strcmp and strncmp #4
|
@ -6,5 +6,5 @@ int strcmp(const char *s1, const char *s2)
|
|||
s1 += 1;
|
||||
s2 += 1;
|
||||
}
|
||||
return (*s1 - *s2);
|
||||
return ((unsigned char) *s1 - (unsigned char) *s2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue