diff options
Diffstat (limited to 'pasta.c')
-rw-r--r-- | pasta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -63,7 +63,7 @@ loop: struct dirent *dp = (struct dirent *)buf; int pos = 0; - while (pos < n) { + while (dp->d_reclen && pos < n) { pid_t pid; errno = 0; |