commit:     bb7ad62a52e63cc3c02b799d78cd47a6c8cf1c35
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 15:47:40 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 15:47:40 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=bb7ad62a

libq/xpak: fix copy/paste typo causing xpak_extract to always fail

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/xpak.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libq/xpak.c b/libq/xpak.c
index ee989e4..c2e93f9 100644
--- a/libq/xpak.c
+++ b/libq/xpak.c
@@ -192,8 +192,8 @@ xpak_extract(
        /* the xpak may be large (like when it has CONTENTS) #300744 */
        x->data = (size_t)x->data_len < sizeof(ext) ? ext : 
xmalloc(x->data_len);
        in = fread(x->data, 1, x->data_len, x->fp);
-       if (in != (size_t)x->index_len)
-               err("insufficient data read, got %zd, requested %d", in, 
x->index_len);
+       if (in != (size_t)x->data_len)
+               err("insufficient data read, got %zd, requested %d", in, 
x->data_len);
 
        _xpak_walk_index(x, argc, argv, func);
 

Reply via email to