From cd14522915a9bcf385abea83728a3b775a5ab586 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 4 Jun 2015 22:10:30 +0200 Subject: [PATCH] Swap misplaced args in db.c --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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