From cf0edb92ba349afad02e6bc1ca79da0cb6a72ea3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 4 Oct 2011 15:31:17 -0500 Subject: Parse '0' as a valid package installed size This was a bad oversight on my part, pointed out by Jakob. Whoops. Signed-off-by: Dan McGee --- lib/libalpm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') 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); -- cgit v1.2.3-70-g09d2