From 9472d554e13168872affab8fc2baf543a77aa1bb Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 14 Feb 2014 09:25:00 +0000 Subject: [PATCH] Fix ldns_fgetc bug similar to ldns_bgetc. git-svn-id: file:///svn/unbound/trunk@3083 be551aaa-1e26-0410-a405-d3ace91eadb9 --- ldns/parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ldns/parse.c b/ldns/parse.c index 809bd2286..d0934ffb1 100644 --- a/ldns/parse.c +++ b/ldns/parse.c @@ -163,7 +163,11 @@ sldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *l return (ssize_t)i; tokenread: - sldns_fskipcs_l(f, del, line_nr); + if(*del == '"') + /* do not skip over quotes after the string, they are part + * of the next string. But skip over whitespace (if needed)*/ + sldns_fskipcs_l(f, del+1, line_nr); + else sldns_fskipcs_l(f, del, line_nr); *t = '\0'; if (p != 0) { return -1; -- 2.47.2