Swap misplaced args in db.c

This commit is contained in:
ejurgensen 2015-06-04 22:10:30 +02:00
parent ac34ffabec
commit cd14522915

View File

@ -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