cake
/
p7utils
Archived
1
0
Fork 0

Corrected listing (directories)

This commit is contained in:
Thomas Touhey 2016-12-27 23:29:08 +01:00
parent 18bc329cae
commit 9890a9d57e
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ static void print_file_info(const char *dir, const char *name, p7uint_t size)
/* put path in buffer */
char *b = buf;
if (dir) b += sprintf(b, "%s/", dir);
b[sprintf(b, "%s", name)] = ' ';
if (name) b[sprintf(b, "%s", name)] = ' ';
/* put size */
sprintf(&buf[28], "%10uo", (unsigned)size);