From: Evgeniy Ivanov Date: Sat, 4 Feb 2012 17:26:58 +0000 (+0400) Subject: Fix bug in libsa/ls. X-Git-Tag: v3.2.0~78 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=f119e63750c027cff01c7bd15e6839de66cf1bf2;p=minix.git Fix bug in libsa/ls. --- 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;