Remember to terminate the SQL escaped string.

This commit is contained in:
Jan Vidar Krey 2010-08-03 23:13:35 +02:00
parent 04c02d3f2f
commit 4a977da514
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ static const char* sql_escape_string(const char* str)
out[i++] = '\'';
out[i++] = str[n];
}
out[i++] = '\0';
return out;
}