x86_64 fix

* glocalfile.c (get_unique_filename): x86_64 fix

svn path=/trunk/; revision=6286
This commit is contained in:
Dan Winship 2008-01-09 16:39:42 +00:00
parent 896ebed1a5
commit e4d018f1dd
2 changed files with 5 additions and 1 deletions

View 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:

View 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);
}