diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-17 22:08:50 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-17 22:08:50 +0200 |
commit | 3e400c3df5572524b7ba08b030f45eb3ba6b7734 (patch) | |
tree | c7fd7a5d391649c7905ee685cfa7fe7b4498cf1b /cforum.c | |
parent | 361bb55f01ba28960a8127b0a16c1e7a7a8de61a (diff) | |
download | cforum-3e400c3df5572524b7ba08b030f45eb3ba6b7734.tar.gz |
Add database helper functions
Diffstat (limited to 'cforum.c')
-rw-r--r-- | cforum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |