aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interface.c2
1 files changed, 1 insertions, 1 deletions
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: