diff --git a/src/db.c b/src/db.c index 44a92d59..0d4462b6 100644 --- a/src/db.c +++ b/src/db.c @@ -3688,7 +3688,7 @@ db_admin_update(const char *key, const char *value) #define Q_TMPL "UPDATE admin SET value='%q' WHERE key='%q';" char *query; - query = sqlite3_mprintf(Q_TMPL, key, value); + query = sqlite3_mprintf(Q_TMPL, value, key); return db_query_run(query, 1, 0); #undef Q_TMPL