commit: fad4e2f0ce2310f180c8cd25902aa1ee4de44390
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 30 08:19:52 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Apr 30 08:19:52 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=fad4e2f0
libq/cache: fix reading quoted strings in cache_read_file_ebuild
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
libq/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libq/cache.c b/libq/cache.c
index 504b6d3..ab7e4f8 100644
--- a/libq/cache.c
+++ b/libq/cache.c
@@ -419,7 +419,7 @@ cache_read_file_ebuild(cache_pkg_ctx *pkg_ctx)
q = p;
if (*q == '"' || *q == '\'') {
/* find matching quote */
- q = p;
+ p++;
do {
while (*p != '\0' && *p != *q)
p++;