Fix ldns_fgetc bug similar to ldns_bgetc.

git-svn-id: file:///svn/unbound/trunk@3083 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2014-02-14 09:25:00 +00:00
parent 93009bd9f2
commit 9472d554e1
+5 -1
View File
@@ -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;