Commit 5063ac95 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Handle \n correctly in parser.

parent 5e9a3a93
......@@ -68,7 +68,7 @@ getword(int c, char **token_r, gnc_t gnc, void *closure)
if(i >= 255) return -2;
buf[i++] = c;
c = gnc(closure);
} while(c != ' ' && c != '\t' && c >= 0);
} while(c != ' ' && c != '\t' && c != '\n' && c >= 0);
buf[i] = '\0';
*token_r = strdup(buf);
return c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment