diff options
-rw-r--r-- | usr.bin/aucat/wav.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/aucat/wav.c b/usr.bin/aucat/wav.c index e11e01ff3c5..0b7bfba6f8c 100644 --- a/usr.bin/aucat/wav.c +++ b/usr.bin/aucat/wav.c @@ -192,6 +192,8 @@ wav_read(struct file *file, unsigned char *data, unsigned count) } } n = pipe_read(file, data, count); + if (n == 0) + return 0; if (f->rbytes >= 0) f->rbytes -= n; if (f->map) { |