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

Correctly quote backslash, even if it is the only thing that needs

quoting in the string.

Fixes	#900
parent 1d648067
...@@ -534,7 +534,7 @@ vsb_quote(struct vsb *s, const char *p, int len, int how) ...@@ -534,7 +534,7 @@ vsb_quote(struct vsb *s, const char *p, int len, int how)
len = strlen(p); len = strlen(p);
for (q = p; q < p + len; q++) { for (q = p; q < p + len; q++) {
if (!isgraph(*q) || *q == '"') { if (!isgraph(*q) || *q == '"' || *q == '\\') {
quote++; quote++;
break; break;
} }
......
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