commit: 9ec380a6048391850c97e0a7359e8c25745899c9
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 21 20:51:47 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Jun 21 20:51:47 2016 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=9ec380a6
qlist: fix repo length calculation w/slots
qlist.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qlist.c b/qlist.c
index d238259..4ea3810 100644
--- a/qlist.c
+++ b/qlist.c
@@ -145,11 +145,11 @@ qlist_match(q_vdb_pkg_ctx *pkg_ctx, const char *name,
depend_atom **name_atom, b
if (urepo) {
if (!pkg_ctx->repo)
q_vdb_pkg_eat(pkg_ctx, "repository", &pkg_ctx->repo,
&pkg_ctx->repo_len);
- urepo_len = strlen(urepo);
urepo += 2;
+ urepo_len = strlen(urepo);
if (uslot_len)
- uslot_len -= urepo_len;
+ uslot_len -= (urepo_len + 2);
}
/* maybe they're using a version range */