Remember to terminate the SQL escaped string.
This commit is contained in:
parent
04c02d3f2f
commit
4a977da514
@ -86,6 +86,7 @@ static const char* sql_escape_string(const char* str)
|
|||||||
out[i++] = '\'';
|
out[i++] = '\'';
|
||||||
out[i++] = str[n];
|
out[i++] = str[n];
|
||||||
}
|
}
|
||||||
|
out[i++] = '\0';
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user