Module Name: src
Committed By: christos
Date: Tue Aug 13 08:48:08 UTC 2019
Modified Files:
src/distrib/utils/libhack: strcasecmp.c
Log Message:
use unsigned char to prevent sign extension.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/utils/libhack/strcasecmp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/libhack/strcasecmp.c
diff -u src/distrib/utils/libhack/strcasecmp.c:1.2 src/distrib/utils/libhack/strcasecmp.c:1.3
--- src/distrib/utils/libhack/strcasecmp.c:1.2 Mon Aug 12 05:34:53 2019
+++ src/distrib/utils/libhack/strcasecmp.c Tue Aug 13 04:48:07 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: strcasecmp.c,v 1.2 2019/08/12 09:34:53 martin Exp $ */
+/* $NetBSD: strcasecmp.c,v 1.3 2019/08/13 08:48:07 christos Exp $ */
/*
* Written by Martin Husemann <[email protected]>
@@ -13,7 +13,7 @@
int
strcasecmp(const char *s1, const char *s2)
{
- unsigned int c1, c2;
+ unsigned char c1, c2;
do {
c1 = *s1++;