diff options
author | Haru <haru@dotalux.com> | 2015-01-12 20:11:21 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-12 20:46:31 +0100 |
commit | 6a5636ddf61e4fca9d258c11ebead182564f234f (patch) | |
tree | e6ba32523f8ba10400cb350ba366586101fdc388 /src/char/int_quest.c | |
parent | 60da9eab8463052d9196dae774aa91251f06db66 (diff) | |
download | hercules-6a5636ddf61e4fca9d258c11ebead182564f234f.tar.gz hercules-6a5636ddf61e4fca9d258c11ebead182564f234f.tar.bz2 hercules-6a5636ddf61e4fca9d258c11ebead182564f234f.tar.xz hercules-6a5636ddf61e4fca9d258c11ebead182564f234f.zip |
Fixed some -Wformat-security warnings
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_quest.c')
-rw-r--r-- | src/char/int_quest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char/int_quest.c b/src/char/int_quest.c index b993cbc14..dd3d4e1bf 100644 --- a/src/char/int_quest.c +++ b/src/char/int_quest.c @@ -60,7 +60,7 @@ struct quest *mapif_quests_fromsql(int char_id, int *count) memset(&tmp_quest, 0, sizeof(struct quest)); - if (SQL_ERROR == SQL->StmtPrepare(stmt, StrBuf->Value(&buf)) + if (SQL_ERROR == SQL->StmtPrepareStr(stmt, StrBuf->Value(&buf)) || SQL_ERROR == SQL->StmtBindParam(stmt, 0, SQLDT_INT, &char_id, 0) || SQL_ERROR == SQL->StmtExecute(stmt) || SQL_ERROR == SQL->StmtBindColumn(stmt, 0, SQLDT_INT, &tmp_quest.quest_id, 0, NULL, NULL) @@ -142,7 +142,7 @@ bool mapif_quest_add(int char_id, struct quest qd) StrBuf->Printf(&buf, ", '%d'", qd.count[i]); } StrBuf->AppendStr(&buf, ")"); - if (SQL_ERROR == SQL->Query(inter->sql_handle, StrBuf->Value(&buf))) { + if (SQL_ERROR == SQL->QueryStr(inter->sql_handle, StrBuf->Value(&buf))) { Sql_ShowDebug(inter->sql_handle); StrBuf->Destroy(&buf); return false; @@ -171,7 +171,7 @@ bool mapif_quest_update(int char_id, struct quest qd) } StrBuf->Printf(&buf, " WHERE `quest_id` = '%d' AND `char_id` = '%d'", qd.quest_id, char_id); - if (SQL_ERROR == SQL->Query(inter->sql_handle, StrBuf->Value(&buf))) { + if (SQL_ERROR == SQL->QueryStr(inter->sql_handle, StrBuf->Value(&buf))) { Sql_ShowDebug(inter->sql_handle); StrBuf->Destroy(&buf); return false; |