1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 05:29:11 +00:00

fix problems with negative numbers (sf.net id #2644593) (thanks Zhoushen Huang)

This commit is contained in:
Nikolas Garofil 2009-03-15 17:09:35 +01:00
parent 9c0f04bc10
commit 8bcc287958

View File

@ -134,6 +134,8 @@ enum arg_type get_arg_type(const char *arg)
if (*p == '"' && *e == '"')
return ARG_STRING;
if (*p == '-') //allow negative values
p++;
while (p != e) {
if (!isdigit(*p))
break;