aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
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)
{