From 3e400c3df5572524b7ba08b030f45eb3ba6b7734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 17 Sep 2021 22:08:50 +0200 Subject: Add database helper functions --- cforum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cforum.c') diff --git a/cforum.c b/cforum.c index 80cc424..f29d423 100644 --- a/cforum.c +++ b/cforum.c @@ -47,7 +47,7 @@ main(int argc, char *argv[]) return 1; } if(sqlite3_step(stmt) == SQLITE_ROW) - site.name = strdup(sqlite3_column_text(stmt, 0)); + site.name = strdup((char *)sqlite3_column_text(stmt, 0)); else{ snprintf(err, MAXERR, "The site name is not set.\n"); srverr(err); -- cgit v1.2.3