From: Michael Schroeder Date: Fri, 18 Oct 2013 10:01:39 +0000 (+0200) Subject: small improvement in :any parsing X-Git-Tag: 0.6.4~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f634dce4f7e1929419b2521d7869f8dfb5a73e;p=thirdparty%2Flibsolv.git small improvement in :any parsing --- diff --git a/ext/repo_deb.c b/ext/repo_deb.c index 370050ef..6d2c7bda 100644 --- a/ext/repo_deb.c +++ b/ext/repo_deb.c @@ -122,7 +122,7 @@ parseonedep(Pool *pool, char *p) while (*p == ' ' || *p == '\t' || *p == '\n') p++; } - if (ne - n > 4 && !strncmp(ne - 4, ":any", 4)) + if (ne - n > 4 && ne[-4] == ':' && !strncmp(ne - 4, ":any", 4)) { /* multiarch annotation */ name = pool_strn2id(pool, n, ne - n - 4, 1);