aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pop3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index bb3781ef3..f94035faa 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -935,6 +935,7 @@ CURLcode Curl_pop3_write(struct connectdata *conn,
pop3c->eob += check;
if(pop3c->eob == POP3_EOB_LEN) {
/* full match, the transfer is done! */
+ str[nread - check] = '\0';
nread -= check;
k->keepon &= ~KEEP_RECV;
pop3c->eob = 0;