[Xfce4-commits] <thunar:xfce-4.8> Fix sorting of filenames with large numbers (bug #5356).

Jannis Pohlmann noreply at xfce.org
Sun Nov 6 15:26:02 CET 2011


Updating branch refs/heads/xfce-4.8
         to 493db02bdbc6ec667cd04e75a77dff8366ec1bc0 (commit)
       from 7bbb212ca35f28ce42a935e1a1f283feec376911 (commit)

commit 493db02bdbc6ec667cd04e75a77dff8366ec1bc0
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Nov 6 16:58:33 2011 +0300

    Fix sorting of filenames with large numbers (bug #5356).
    
    Change compare_by_name_using_number() to use guint64.
    
    Signed-off-by: Jannis Pohlmann <jannis at xfce.org>

 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 909da25..44cdb31 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -3168,12 +3168,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)


More information about the Xfce4-commits mailing list