Commit 01247317 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dont eat newlines in VSB_QUOTE_CSTR mode

Spotted by:	gquintar
parent 96bb4f7f
......@@ -555,7 +555,7 @@ VSB_quote(struct vsb *s, const void *v, int len, int how)
break;
case '\n':
if (how & VSB_QUOTE_CSTR)
(void)VSB_cat(s, "\"\n\t\"");
(void)VSB_cat(s, "\\n\"\n\t\"");
else if (how & VSB_QUOTE_NONL)
(void)VSB_cat(s, "\n");
else
......
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