Remember to terminate the SQL escaped string.
This commit is contained in:
1 parent
04c02d3f2f
commit
4a977da514
1 file changed
+1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user