More fixes for capture

This commit is contained in:
Jaroslav Kysela 1999-11-14 20:25:09 +00:00
parent a90832df7e
commit 55408731f7

View file

@ -1305,8 +1305,8 @@ void capture_go(int fd, int loaded, u_long count, int rtype, char *name)
}
count -= c;
}
if (l < -1) {
fprintf(stderr, "write error\n");
if (l < 0) {
fprintf(stderr, "read error: %s\n", snd_strerror(l));
exit(-1);
}
if (l == 0)