x86_64 fix
authorDan Winship <danw@src.gnome.org>
Wed, 9 Jan 2008 16:39:42 +0000 (16:39 +0000)
committerDan Winship <danw@src.gnome.org>
Wed, 9 Jan 2008 16:39:42 +0000 (16:39 +0000)
* glocalfile.c (get_unique_filename): x86_64 fix

svn path=/trunk/; revision=6286

gio/ChangeLog
gio/glocalfile.c

index cb09c5c..a598ed3 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-09  Dan Winship  <danw@gnome.org>
+
+       * glocalfile.c (get_unique_filename): x86_64 fix
+
 2008-01-09  Alexander Larsson  <alexl@redhat.com>
 
         * gio.symbols:
index 4d2f8fa..35ad6ed 100644 (file)
@@ -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);
 }