From: Peter de Ridder Date: Thu, 19 Nov 2009 22:49:28 +0000 (+0100) Subject: Use %%llu with sqlite3_mprintf since it expects that even on Windows X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5580b62e00d1969342cbdecf53472a8a76e2ea14;p=midori Use %%llu with sqlite3_mprintf since it expects that even on Windows Apparently the formats sqlite3 supports are not the same as the runtime library printf supports. --- diff --git a/midori/main.c b/midori/main.c index d9062c71..c31b4754 100644 --- a/midori/main.c +++ b/midori/main.c @@ -440,7 +440,7 @@ midori_history_remove_item_cb (KatzeArray* history, sqlcmd = sqlite3_mprintf ( "DELETE FROM history WHERE uri = '%q' AND" - " title = '%q' AND date = %" G_GINT64_FORMAT, + " title = '%q' AND date = %llu", katze_item_get_uri (item), katze_item_get_name (item), katze_item_get_added (item)); @@ -486,7 +486,7 @@ midori_history_notify_item_cb (KatzeItem* item, GError* error = NULL; sqlcmd = sqlite3_mprintf ("UPDATE history SET title='%q' WHERE " - "uri='%q' AND date=%" G_GUINT64_FORMAT, + "uri='%q' AND date=%llu", katze_item_get_name (item), katze_item_get_uri (item), katze_item_get_added (item)); @@ -534,8 +534,8 @@ midori_history_add_item_cb (KatzeArray* array, } } sqlcmd = sqlite3_mprintf ("INSERT INTO history VALUES" - "('%q', '%q', %" G_GUINT64_FORMAT "," - " %" G_GUINT64_FORMAT ")", + "('%q', '%q', %llu," + " %llu)", katze_item_get_uri (item), katze_item_get_name (item), katze_item_get_added (item),