From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D4C281382AC for ; Tue, 21 Jun 2016 20:53:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F31A6E0882; Tue, 21 Jun 2016 20:53:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82F29E08BA for ; Tue, 21 Jun 2016 20:53:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22B5A3407D0 for ; Tue, 21 Jun 2016 20:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8F6A241C for ; Tue, 21 Jun 2016 20:53:39 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1466542307.9ec380a6048391850c97e0a7359e8c25745899c9.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qlist.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 9ec380a6048391850c97e0a7359e8c25745899c9 X-VCS-Branch: master Date: Tue, 21 Jun 2016 20:53:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6b9d8843-501f-471f-ad40-f096618048ab X-Archives-Hash: a65f0fb8f3614a7cce27d9c205c29b12 commit: 9ec380a6048391850c97e0a7359e8c25745899c9 Author: Mike Frysinger gentoo org> AuthorDate: Tue Jun 21 20:51:47 2016 +0000 Commit: Mike Frysinger gentoo 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 */