Skip to content

Commit e026e1c

Browse files
authored
fix checks if recv call succeeded
1 parent eb5bd7b commit e026e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

foundation/software.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ out the characters that arrive on the connection.
353353
perror("simplex-talk: accept");
354354
exit(1);
355355
}
356-
while (buf_len == recv(new_s, buf, sizeof(buf), 0))
356+
while (buf_len = recv(new_s, buf, sizeof(buf), 0))
357357
fputs(buf, stdout);
358358
close(new_s);
359359
}

0 commit comments

Comments
 (0)