]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix bug in libsa/ls.
authorEvgeniy Ivanov <lolkaantimat@gmail.com>
Sat, 4 Feb 2012 17:26:58 +0000 (21:26 +0400)
committerBen Gras <ben@minix3.org>
Thu, 9 Feb 2012 17:48:13 +0000 (18:48 +0100)
sys/lib/libsa/ls.c

index dbed957da6a1db47d1bd926c8067c7aaa3bea11b..0f64a284a7027fe18b3acf6c35dabf9fffa5dbb0 100644 (file)
@@ -108,6 +108,7 @@ ls(const char *path)
                fname = strrchr(path, '/');
                if (fname) {
                        size = fname - path;
+                       fname++;
                        p = alloc(size + 1);
                        if (!p)
                                goto out;