diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-23 05:56:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-23 05:56:18 +0000 |
commit | 897cad3662024798463bc418bddaac801228da76 (patch) | |
tree | bdb615c5380cef3df6a35679f28fc9044287d449 /imap.c | |
parent | 7776e2819833e302f654f7bfd34ff2c26b63460a (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |