aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-11-12 21:17:46 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-11-12 21:17:46 +0000
commitee94fbacd209210eb19335636894ab4c9bbf89f1 (patch)
tree014301fe3d909e7230f29ca2e9ae88e041c0768c /pop3.c
parent35f08122fe2f801f067c223b08fe440cda5779ee (diff)
downloadfetchmail-ee94fbacd209210eb19335636894ab4c9bbf89f1.tar.gz
fetchmail-ee94fbacd209210eb19335636894ab4c9bbf89f1.tar.bz2
fetchmail-ee94fbacd209210eb19335636894ab4c9bbf89f1.zip
sprintf -> snprintf
svn path=/trunk/; revision=4005
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index 2c7f883c..8ee3686e 100644
--- a/pop3.c
+++ b/pop3.c
@@ -603,9 +603,9 @@ static int pop3_gettopid( int sock, int num , char *id)
int ok;
int got_it;
char buf [POPBUFSIZE+1];
- sprintf( buf, "TOP %d 1", num );
+ snprintf(buf, sizeof(buf), "TOP %d 1", num);
if ((ok = gen_transact(sock, buf )) != 0)
- return ok;
+ return ok;
got_it = 0;
while ((ok = gen_recv(sock, buf, sizeof(buf))) == 0)
{