Fix missing null terminator

This commit is contained in:
Andrew Pamment 2017-03-20 12:57:26 +10:00
parent 8098b016a3
commit 0d89741851

View File

@ -45,6 +45,7 @@ static char *encapsulate_quote(char *in) {
out[i++] = '\\'; out[i++] = '\\';
} }
out[i] = in[j]; out[i] = in[j];
out[i+1] = '\0';
j++; j++;
} }
return strdup(out); return strdup(out);