From ee94fbacd209210eb19335636894ab4c9bbf89f1 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 12 Nov 2004 21:17:46 +0000 Subject: sprintf -> snprintf svn path=/trunk/; revision=4005 --- pop3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pop3.c') 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) { -- cgit v1.2.3