From e7ae1b0ce96b41dc336210c6df575a4d1cb9d2be Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 11 May 2004 21:33:15 +0000 Subject: [PATCH] fix foobar! git-svn-id: https://svn.musicpd.org/mpd/trunk@993 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index d58c1545e..2fb95ae1c 100644 --- a/src/interface.c +++ b/src/interface.c @@ -558,7 +558,7 @@ int interfacePrintWithFD(int fd,char * buffer) { interface = interfaces+i; - while(buflen>0 || !interface->expired) { + while(buflen>0 && !interface->expired) { copylen = buflen> interface->outBufSize-interface->outBuflen? interface->outBufSize-interface->outBuflen: