1 |
commit: fad4e2f0ce2310f180c8cd25902aa1ee4de44390 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 30 08:19:52 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 30 08:19:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=fad4e2f0 |
7 |
|
8 |
libq/cache: fix reading quoted strings in cache_read_file_ebuild |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
libq/cache.c | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/libq/cache.c b/libq/cache.c |
16 |
index 504b6d3..ab7e4f8 100644 |
17 |
--- a/libq/cache.c |
18 |
+++ b/libq/cache.c |
19 |
@@ -419,7 +419,7 @@ cache_read_file_ebuild(cache_pkg_ctx *pkg_ctx) |
20 |
q = p; |
21 |
if (*q == '"' || *q == '\'') { |
22 |
/* find matching quote */ |
23 |
- q = p; |
24 |
+ p++; |
25 |
do { |
26 |
while (*p != '\0' && *p != *q) |
27 |
p++; |