[libbluray-devel] commit: fix filename sorting in mpls_dump (John Stebbins )

git at videolan.org git at videolan.org
Mon Oct 11 01:16:56 CEST 2010


libbluray | branch: master | John Stebbins <jstebbins at Cruncher.(none)> | Sun Oct 10 16:16:01 2010 -0700| [0ce9f6f2f31570e39bd08467fda01cb5c104fed0] | committer: John Stebbins 

fix filename sorting in mpls_dump

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=0ce9f6f2f31570e39bd08467fda01cb5c104fed0
---

 src/examples/mpls_dump.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/examples/mpls_dump.c b/src/examples/mpls_dump.c
index 06c8edb..d9ed8d8 100644
--- a/src/examples/mpls_dump.c
+++ b/src/examples/mpls_dump.c
@@ -531,8 +531,8 @@ _usage(char *cmd)
 static int
 _qsort_str_cmp(const void *a, const void *b)
 {
-    const char *stra = (const char *)a;
-    const char *strb = (const char *)b;
+    const char *stra = *(char * const *)a;
+    const char *strb = *(char * const *)b;
 
     return strcmp(stra, strb);
 }



More information about the libbluray-devel mailing list