From 897cad3662024798463bc418bddaac801228da76 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 23 Sep 1996 05:56:18 +0000 Subject: Better protection against buffer overruns. svn path=/trunk/; revision=106 --- imap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index fa1e9551..06312d02 100644 --- a/imap.c +++ b/imap.c @@ -42,7 +42,7 @@ char *argbuf; int socket; { int ok; - char buf [POPBUFSIZE]; + char buf [POPBUFSIZE+1]; char *bufp; int n; @@ -134,7 +134,7 @@ int number; int limit; int *lenp; { - char buf [POPBUFSIZE]; + char buf [POPBUFSIZE+1]; int num; if (limit) @@ -165,7 +165,7 @@ int socket; struct hostrec *queryctl; int number; { - char buf [POPBUFSIZE]; + char buf [POPBUFSIZE+1]; if (SockGets(socket, buf,sizeof(buf)) < 0) return(PS_SOCKET); -- cgit v1.2.3