diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-11-12 21:17:46 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-11-12 21:17:46 +0000 |
commit | ee94fbacd209210eb19335636894ab4c9bbf89f1 (patch) | |
tree | 014301fe3d909e7230f29ca2e9ae88e041c0768c /pop3.c | |
parent | 35f08122fe2f801f067c223b08fe440cda5779ee (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |