Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix regression bug: the string "0" is an acceptable integer - blind - suckless …
git clone git://git.suckless.org/blind
Log
Files
Refs
README
LICENSE
---
commit a1d27e57c214f3641b83b5e568d7b3c31c583ed3
parent f5c5a803b516c2246339cec5e576f7e227729554
Author: Mattias Andrée <[email protected]>
Date: Mon, 4 Dec 2017 23:03:42 +0100
Fix regression bug: the string "0" is an acceptable integer
Signed-off-by: Mattias Andrée <[email protected]>
Diffstat:
M src/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/util.c b/src/util.c
@@ -37,7 +37,7 @@ tollu(const char *s, unsigned long long int min, unsigned lon…
return -1;
}
if (!isdigit(s[*s == 'x' || *s == 'X' || *s == '#']) ||
- (*s == '0' && !isdigit(s[1 + (*s == 'x' || *s == 'o' || *s == 'b')…
+ (*s == '0' && s[1] && !isdigit(s[1 + (*s == 'x' || *s == 'o' || *s…
errno = EINVAL;
return -1;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.