summaryrefslogtreecommitdiff
path: root/comms/synce-rra/patches/patch-ai
blob: dd40eba4efa5a8fb1eed4f68f4382586a7891d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ai,v 1.1 2007/10/10 17:12:53 rillig Exp $

--- lib/parser.c.orig	2005-05-13 11:31:07.000000000 +0000
+++ lib/parser.c	2007-10-10 17:06:48.000000000 +0000
@@ -55,6 +55,8 @@ struct _Parser
 	size_t propval_count;
 };
 
+#define myisdigit(c)    isdigit((unsigned char)(c))
+
 bool parser_duration_to_seconds(const char* duration, int* result)/*{{{*/
 {
   enum { dur_sign, dur_p, dur_any, dur_time, dur_end } state = dur_sign;
@@ -122,7 +124,7 @@ bool parser_duration_to_seconds(const ch
             break;
 
           default:
-            if (isdigit(*p))
+            if (myisdigit(*p))
             {
               value = (value * 10) + (*p - '0');
             }
@@ -153,7 +155,7 @@ bool parser_duration_to_seconds(const ch
             break;
 
           default:
-            if (isdigit(*p))
+            if (myisdigit(*p))
             {
               value = (value * 10) + (*p - '0');
             }