Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/am-utils/libamu PR/21147: Christian Biere: ctype functi...
details: https://anonhg.NetBSD.org/src/rev/8336d6fe2f07
branches: trunk
changeset: 580275:8336d6fe2f07
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 17 17:42:48 2005 +0000
description:
PR/21147: Christian Biere: ctype function misuse.
diffstat:
dist/am-utils/libamu/strcasecmp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 139420136a03 -r 8336d6fe2f07 dist/am-utils/libamu/strcasecmp.c
--- a/dist/am-utils/libamu/strcasecmp.c Sun Apr 17 17:37:11 2005 +0000
+++ b/dist/am-utils/libamu/strcasecmp.c Sun Apr 17 17:42:48 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strcasecmp.c,v 1.1.1.7 2004/11/27 01:01:05 christos Exp $ */
+/* $NetBSD: strcasecmp.c,v 1.2 2005/04/17 17:42:48 christos Exp $ */
/*
* Copyright (c) 1997-2004 Erez Zadok
@@ -55,8 +55,8 @@
int
strcasecmp(const char *s1, const char *s2)
{
- const char *cp1 = s1;
- const char *cp2 = s2;
+ const unsigned char *cp1 = (const unsigned char *)s1;
+ const unsigned char *cp2 = (const unsigned char *)s2;
while (tolower(*cp1) == tolower(*cp2++))
if (*cp1++ == '\0')
Home |
Main Index |
Thread Index |
Old Index