blob: 17bcbfa0d98d29778209703581f3381613b468b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ae,v 1.1 2004/12/30 11:10:22 agc Exp $
--- src/strings.c 2004/12/30 11:07:38 1.1
+++ src/strings.c 2004/12/30 11:08:03
@@ -78,7 +78,7 @@
lcaseit(char *s)
{
for (; *s; s++)
- *s = tolower(*s);
+ *s = tolower((unsigned char)*s);
}
/* convert a string to upper case */
@@ -86,7 +86,7 @@
ucaseit(char *s)
{
for (; *s; s++)
- *s = toupper(*s);
+ *s = toupper((unsigned char)*s);
}
char *
|