--- thunar/thunar-file.c 2011-09-20 16:04:56.000000000 -0400 +++ thunar/thunar-file.c 2011-10-10 00:54:59.804339719 -0400 @@ -3168,12 +3168,12 @@ compare_by_name_using_number (const gchar *ap, const gchar *bp) { - guint anum; - guint bnum; + guint64 anum; + guint64 bnum; /* determine the numbers in ap and bp */ - anum = strtoul (ap, NULL, 10); - bnum = strtoul (bp, NULL, 10); + anum = g_ascii_strtoull (ap, NULL, 10); + bnum = g_ascii_strtoull (bp, NULL, 10); /* compare the numbers */ if (anum < bnum)