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

Jannis Pohlmann noreply at xfce.org
Sun Nov 6 15:24:01 CET 2011


Updating branch refs/heads/master
         to 464e9a39f4490b7bd4da0ee902018c9a98950d8f (commit)
       from bb18fa8c31c0f1fa10b84010a5b05174378fd558 (commit)

commit 464e9a39f4490b7bd4da0ee902018c9a98950d8f
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 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)


More information about the Xfce4-commits mailing list