Fix bug in libsa/ls.
This commit is contained in:
parent
58a2b0008e
commit
f119e63750
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ ls(const char *path)
|
||||||
fname = strrchr(path, '/');
|
fname = strrchr(path, '/');
|
||||||
if (fname) {
|
if (fname) {
|
||||||
size = fname - path;
|
size = fname - path;
|
||||||
|
fname++;
|
||||||
p = alloc(size + 1);
|
p = alloc(size + 1);
|
||||||
if (!p)
|
if (!p)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue