23 lines
719 B
Plaintext
23 lines
719 B
Plaintext
$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;
|