]> spindle.queued.net Git - midori/commitdiff
Use %%llu with sqlite3_mprintf since it expects that even on Windows
authorPeter de Ridder <peter@xfce.org>
Thu, 19 Nov 2009 22:49:28 +0000 (23:49 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 19 Nov 2009 22:52:01 +0000 (23:52 +0100)
Apparently the formats sqlite3 supports are not the same as the
runtime library printf supports.

midori/main.c

index d9062c712cc47b028e915f85b711a611f9af42c3..c31b4754069eb53fad9e569a1da630947a55fd96 100644 (file)
@@ -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),