From e4d018f1ddac53ac6f6161c8bb20bddf2c0f220f Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 9 Jan 2008 16:39:42 +0000 Subject: [PATCH] x86_64 fix * glocalfile.c (get_unique_filename): x86_64 fix svn path=/trunk/; revision=6286 --- gio/ChangeLog | 4 ++++ gio/glocalfile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index cb09c5c20..a598ed37c 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,7 @@ +2008-01-09 Dan Winship + + * glocalfile.c (get_unique_filename): x86_64 fix + 2008-01-09 Alexander Larsson * gio.symbols: diff --git a/gio/glocalfile.c b/gio/glocalfile.c index 4d2f8fad4..35ad6ed79 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -1325,7 +1325,7 @@ get_unique_filename (const char *basename, dot = strchr (basename, '.'); if (dot) - return g_strdup_printf ("%.*s.%d%s", dot - basename, basename, id, dot); + return g_strdup_printf ("%.*s.%d%s", (int)(dot - basename), basename, id, dot); else return g_strdup_printf ("%s.%d", basename, id); } -- 2.34.1