]> Pileus Git - ~andy/fetchmail/commitdiff
sprintf -> snprintf
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 12 Nov 2004 21:17:46 +0000 (21:17 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 12 Nov 2004 21:17:46 +0000 (21:17 -0000)
svn path=/trunk/; revision=4005

pop3.c

diff --git a/pop3.c b/pop3.c
index 2c7f883c7cfb95e1b2a2c16a1cff9df68471869d..8ee3686e30419981665c70ef0807681ccfd07362 100644 (file)
--- 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) 
     {