diff --git a/src/plugins/mod_auth_sqlite.c b/src/plugins/mod_auth_sqlite.c index 221b345..87c6da4 100644 --- a/src/plugins/mod_auth_sqlite.c +++ b/src/plugins/mod_auth_sqlite.c @@ -86,6 +86,7 @@ static const char* sql_escape_string(const char* str) out[i++] = '\''; out[i++] = str[n]; } + out[i++] = '\0'; return out; }