diff options
author | root <root@rshg054.dnsready.net> | 2012-03-14 00:01:30 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-14 00:01:30 +0000 |
commit | 01a0c4bc740842efa3bf1a7e1d6c8be5656e4e2a (patch) | |
tree | c9cf79fb6311cbb2a890419e0a382aa211fb3010 /extra/thunar/fix-sorting-of-large-numbers-5356.patch | |
parent | ca06c41d7d8e5d38284de9048372ab45dcd8b2fb (diff) |
Wed Mar 14 00:01:29 UTC 2012
Diffstat (limited to 'extra/thunar/fix-sorting-of-large-numbers-5356.patch')
-rw-r--r-- | extra/thunar/fix-sorting-of-large-numbers-5356.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/thunar/fix-sorting-of-large-numbers-5356.patch b/extra/thunar/fix-sorting-of-large-numbers-5356.patch new file mode 100644 index 000000000..1105eea83 --- /dev/null +++ b/extra/thunar/fix-sorting-of-large-numbers-5356.patch @@ -0,0 +1,32 @@ +From 493db02bdbc6ec667cd04e75a77dff8366ec1bc0 Mon Sep 17 00:00:00 2001 +From: Eric Koegel <eric.koegel@gmail.com> +Date: Sun, 06 Nov 2011 13:58:33 +0000 +Subject: Fix sorting of filenames with large numbers (bug #5356). + +Change compare_by_name_using_number() to use guint64. + +Signed-off-by: Jannis Pohlmann <jannis@xfce.org> +--- +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) +-- +cgit v0.9.0.2 |