From 4db94d1629bfe4269b0bfe79482c6a516b0b3e14 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Sun, 6 Nov 2011 16:58:33 +0300 Subject: [PATCH] Patch for Bug 5356: Filenames with large numbers. Changed compare_by_name_using_number to use guint64 --- thunar/thunar-file.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 9e5393c..4090d9f 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -3177,12 +3177,12 @@ static gint 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 = strtouq (ap, NULL, 10); + bnum = strtouq (bp, NULL, 10); /* compare the numbers */ if (anum < bnum) -- 1.7.5.4