[pacman-dev] [PATCH] Parse '0' as a valid package installed size
Dan McGee
dan at archlinux.org
Tue Oct 4 16:32:29 EDT 2011
This was a bad oversight on my part, pointed out by Jakob. Whoops.
Signed-off-by: Dan McGee <dan at archlinux.org>
---
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
More information about the pacman-dev
mailing list