From aeeae3810d4263f2118f73bdb08bd34b5f243a40 Mon Sep 17 00:00:00 2001 From: Heath Mitchell Date: Thu, 24 Nov 2022 13:36:02 +0100 Subject: [PATCH] Update 'src/string/strcmp.c' --- src/string/strcmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string/strcmp.c b/src/string/strcmp.c index f3ec3cc..5ec8600 100644 --- a/src/string/strcmp.c +++ b/src/string/strcmp.c @@ -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); }