aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface.c b/src/interface.c
index 9e85e289d..fd33382e8 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -295,7 +295,7 @@ static int proccessLineOfInput(Interface * interface) {
}
static int processBytesRead(Interface * interface, int bytesRead) {
- int ret = 1;
+ int ret = 0;
while(bytesRead > 0) {
interface->bufferLength++;
@@ -321,7 +321,7 @@ static int processBytesRead(Interface * interface, int bytesRead) {
}
}
- return 0;
+ return ret;
}
int interfaceReadInput(Interface * interface) {