diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-23 02:16:13 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 02:16:13 -0500 |
commit | 3df49acb30cb5a06e15faffcc18cc52b74905e7f (patch) | |
tree | 00dfc92971d16683bb3c08c7003ea4842120db94 /lib/libalpm/util.c | |
parent | 0ff52b68452046d61c24649ec94886bd74faab45 (diff) | |
parent | 115bf1bf9f4be00e93bfd40a2506eda12607ccb8 (diff) | |
download | pacman-3df49acb30cb5a06e15faffcc18cc52b74905e7f.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r-- | lib/libalpm/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 5332f001..660d4eb4 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -740,6 +740,9 @@ int _alpm_archive_fgets(struct archive *a, struct archive_read_buffer *b) int64_t offset; int done = 0; + /* ensure we start populating our line buffer at the beginning */ + b->line_offset = b->line; + while(1) { /* have we processed this entire block? */ if(b->block + b->block_size == b->block_offset) { |