aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-23 05:56:18 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-23 05:56:18 +0000
commit897cad3662024798463bc418bddaac801228da76 (patch)
treebdb615c5380cef3df6a35679f28fc9044287d449 /imap.c
parent7776e2819833e302f654f7bfd34ff2c26b63460a (diff)
downloadfetchmail-897cad3662024798463bc418bddaac801228da76.tar.gz
fetchmail-897cad3662024798463bc418bddaac801228da76.tar.bz2
fetchmail-897cad3662024798463bc418bddaac801228da76.zip
Better protection against buffer overruns.
svn path=/trunk/; revision=106
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c6
1 files changed, 3 insertions, 3 deletions
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);