This was a bad oversight on my part, pointed out by Jakob. Whoops.

Signed-off-by: Dan McGee <[email protected]>
---
 lib/libalpm/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 18d1c36..beefa93 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);
-- 
1.7.7


Reply via email to