[Xfce4-commits] <midori:master> Use %%llu with sqlite3_mprintf since it expects that even on Windows
Christian Dywan
noreply at xfce.org
Thu Nov 19 23:56:01 CET 2009
Updating branch refs/heads/master
to 5580b62e00d1969342cbdecf53472a8a76e2ea14 (commit)
from 974ba431d813dea557179a21a02e6084a5b7c4db (commit)
commit 5580b62e00d1969342cbdecf53472a8a76e2ea14
Author: Peter de Ridder <peter at xfce.org>
Date: Thu Nov 19 23:49:28 2009 +0100
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.
midori/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/midori/main.c b/midori/main.c
index d9062c7..c31b475 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),
More information about the Xfce4-commits
mailing list