index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-10-04 15:31:17 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-04 15:31:17 -0500 |
commit | cf0edb92ba349afad02e6bc1ca79da0cb6a72ea3 (patch) | |
tree | f6e3a86f5433aee5d6ed4912e199ee7a01caded9 /lib/libalpm | |
parent | 94bc64ae1bd6a51d71829a58a2e1972f629d47fb (diff) |
-rw-r--r-- | lib/libalpm/util.c | 2 |
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); |