From f119e63750c027cff01c7bd15e6839de66cf1bf2 Mon Sep 17 00:00:00 2001 From: Evgeniy Ivanov Date: Sat, 4 Feb 2012 21:26:58 +0400 Subject: [PATCH] Fix bug in libsa/ls. --- sys/lib/libsa/ls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/lib/libsa/ls.c b/sys/lib/libsa/ls.c index dbed957da..0f64a284a 100644 --- a/sys/lib/libsa/ls.c +++ b/sys/lib/libsa/ls.c @@ -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;