Fix bug in libsa/ls.

This commit is contained in:
Evgeniy Ivanov 2012-02-04 21:26:58 +04:00 committed by Ben Gras
parent 58a2b0008e
commit f119e63750

View 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;