Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 18d1c365..beefa936 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -1089,7 +1089,7 @@ off_t _alpm_strtoofft(const char *line)
errno = 0;
/* we are trying to parse bare numbers only, no leading anything */
- if(line[0] < '1' || line[0] > '9') {
+ if(line[0] < '0' || line[0] > '9') {
return (off_t)-1;
}
result = strtoull(line, &end, 10);