Fix fatal bug

This commit is contained in:
Tobias Reisinger 2020-12-31 00:12:57 +01:00
parent 3c04173fbf
commit 20f80a223f

View file

@ -269,7 +269,7 @@ database_helper_get_strings(sqlite3_stmt *stmt)
result = (char**)realloc(result, sizeof(char*) * (row + 1));
result[row - 1] = malloc(sizeof(char) * (new_string_len + 1));
strncpy(result[row - 1], new_string, new_string_len);
result[new_string_len] = '\0';
result[row - 1][new_string_len] = '\0';
}
else
{