index
:
passt
Plug A Simple Socket Transport
about
git
code
bugs
lists
chat
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
pasta.c
2
1 files changed, 1 insertions, 1 deletions
diff --git a/pasta.c b/pasta.c
index bcc1261..3928ad0 100644
--- a/
pasta.c
+++ b/
pasta.c
@@ -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;