openbsd-ports/audio/mpg321/patches/patch-remote_c

13 lines
487 B
Plaintext

Index: remote.c
--- remote.c.orig
+++ remote.c
@@ -59,7 +59,7 @@ enum mad_flow remote_parse_input(buffer *buf, playlist
if (select (1, &fd, NULL, NULL, &tv))
{
- if (!(numread = read(0, remote_input_buf + alreadyread, (sizeof(input)-1)-alreadyread)) > 0)
+ if (!((numread = read(0, remote_input_buf + alreadyread, (sizeof(input)-1)-alreadyread)) > 0))
{
numread = 0;
/* fprintf(stderr, "remote_parse_input() called with no input queued!");