aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--beam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/beam.c b/beam.c
index 891faac..d0c29da 100644
--- a/beam.c
+++ b/beam.c
@@ -78,7 +78,7 @@ int process_message __P2 (char *,buf, int,len)
text = (char *)malloc(msglen);
if (!text) {
errmsg("malloc");
- return used > len ? len : used;
+ return i;
}
/* only doing trivial (IAC IAC) processing; this should all be