summaryrefslogtreecommitdiff
path: root/sysutils/gkrellm/patches/patch-ah
blob: 43db621b179f41f0e132011ad590c5f7ea24cc3b (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-ah,v 1.1 2005/03/22 14:57:12 cube Exp $

--- src/config.c.orig	2005-03-07 21:05:44.000000000 +0100
+++ src/config.c
@@ -411,7 +411,7 @@ assign_style_entry(GkrellmStyle *style, 
 		{
 		if (strcmp(value, "center") == 0)
 			style->label_position = GKRELLM_LABEL_CENTER;
-		else if (isdigit(*value))
+		else if (isdigit((unsigned char)*value))
 			style->label_position = atoi(value);
 		else
 			style->label_position = GKRELLM_LABEL_NONE;
@@ -1725,7 +1725,7 @@ parse_config_line(gchar *line, struct _c
 			}
 		if (conf->value)
 			{
-			if (isdigit(*s) || *s == '-')
+			if (isdigit((unsigned char)*s) || *s == '-')
 				val = atoi(s);
 			else if (!strcmp(s, "on") || !strcmp(s, "true"))
 				val = 1;