aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 22:08:50 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 22:08:50 +0200
commit3e400c3df5572524b7ba08b030f45eb3ba6b7734 (patch)
treec7fd7a5d391649c7905ee685cfa7fe7b4498cf1b /cforum.c
parent361bb55f01ba28960a8127b0a16c1e7a7a8de61a (diff)
downloadcforum-3e400c3df5572524b7ba08b030f45eb3ba6b7734.tar.gz
Add database helper functions
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c2
1 files changed, 1 insertions, 1 deletions
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);