[pacman-dev] [PATCH] Parse '0' as a valid package installed size
4 Oct
2011
4 Oct
'11
8:32 p.m.
This was a bad oversight on my part, pointed out by Jakob. Whoops. Signed-off-by: Dan McGee <dan@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
4817
Age (days ago)
4817
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dan McGee