From 4a977da514edaaeffedf3b52a98fa3ec276b6647 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 3 Aug 2010 23:13:35 +0200 Subject: [PATCH] Remember to terminate the SQL escaped string. --- src/plugins/mod_auth_sqlite.c | 1 + 1 file changed, 1 insertion(+) 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; }