mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-13 17:38:45 +00:00
fix problems with negative numbers (sf.net id #2644593) (thanks Zhoushen Huang)
This commit is contained in:
parent
9c0f04bc10
commit
8bcc287958
@ -134,6 +134,8 @@ enum arg_type get_arg_type(const char *arg)
|
|||||||
if (*p == '"' && *e == '"')
|
if (*p == '"' && *e == '"')
|
||||||
return ARG_STRING;
|
return ARG_STRING;
|
||||||
|
|
||||||
|
if (*p == '-') //allow negative values
|
||||||
|
p++;
|
||||||
while (p != e) {
|
while (p != e) {
|
||||||
if (!isdigit(*p))
|
if (!isdigit(*p))
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user