summaryrefslogtreecommitdiff
path: root/ham/gmfsk/patches/patch-ad
blob: b40bd9f213ed8bd08973d81c0251d3b432b64702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ad,v 1.1 2006/04/26 01:52:18 wulf Exp $

--- src/picture.c.orig	2006-04-26 10:39:13.000000000 +0930
+++ src/picture.c	2006-04-26 10:39:36.000000000 +0930
@@ -48,13 +48,13 @@
 
 	p += 4;
 
-	while (isdigit(*p))
+	while (isdigit((u_char) *p))
 		*w = (*w * 10) + (*p++ - '0');
 
 	if (*p++ != 'x')
 		return FALSE;
 
-	while (isdigit(*p))
+	while (isdigit((u_char) *p))
 		*h = (*h * 10) + (*p++ - '0');
 
 	if (*p == 'C') {