blob: a36b2db12846c1b9ea43bea7b29b21b0b229f791 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-src_dapa_c,v 1.1 2011/09/03 21:59:18 dholland Exp $
Use toupper correctly. (clang complains and fails the build)
--- src/DAPA.C~ 2004-02-07 18:54:06.000000000 +0000
+++ src/DAPA.C
@@ -1128,7 +1128,7 @@ TDAPA::TDAPA():
strncpy(temp, val, MAXLINESIZE-1);
temp[MAXLINESIZE-1] = '\0';
for (p=temp; *p; p++)
- *p=toupper(*p);
+ *p=toupper((unsigned char)*p);
Info(3, "Inverting %s\n",temp);
if (strstr(temp,"SCK"))
sck_invert=1;
|