Fix missing null terminator
This commit is contained in:
parent
8098b016a3
commit
0d89741851
@ -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);
|
||||||
|
Reference in New Issue
Block a user