changeset 690:953e16582f25

Fix th_strcasecmp() and th_strncasecmp() for certain .. cases.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Mar 2020 15:46:01 +0200
parents 9c61834c191b
children 49c818acbbbe
files th_string.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Mon Mar 09 15:20:49 2020 +0200
+++ b/th_string.c	Mon Mar 09 15:46:01 2020 +0200
@@ -471,7 +471,7 @@
         s2++;
     }
 
-    return 0;
+    return th_tolower(*s1) - th_tolower(*s2);
 }
 
 
@@ -494,7 +494,7 @@
         n--;
     }
 
-    return 0;
+    return th_tolower(*s1) - th_tolower(*s2);
 }