diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2009-05-04 22:00:18 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2009-05-04 22:00:18 +0000 |
commit | 1cecbe2bc1a9f8b939facb007c6551fb77b1048a (patch) | |
tree | f156fd61e776cec813954b6fa0c130687971b163 | |
parent | 64c3c5394121ab9f5a93a8c6d2c48511ff720536 (diff) | |
download | fetchmail-1cecbe2bc1a9f8b939facb007c6551fb77b1048a.tar.gz fetchmail-1cecbe2bc1a9f8b939facb007c6551fb77b1048a.tar.bz2 fetchmail-1cecbe2bc1a9f8b939facb007c6551fb77b1048a.zip |
Fix format string bugs.
svn path=/branches/BRANCH_6-3/; revision=5291
-rw-r--r-- | pop3.c | 2 | ||||
-rw-r--r-- | report.c | 2 | ||||
-rw-r--r-- | smtp.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -771,7 +771,7 @@ static int pop3_gettopid(int sock, int num , char *id, size_t idsize) int got_it; char buf [POPBUFSIZE+1]; snprintf(buf, sizeof(buf), "TOP %d 1", num); - if ((ok = gen_transact(sock, buf )) != 0) + if ((ok = gen_transact(sock, "%s", buf)) != 0) return ok; got_it = 0; while ((ok = gen_recv(sock, buf, sizeof(buf))) == 0) @@ -274,7 +274,7 @@ void report_flush(FILE *errfp) if (partial_message_size_used != 0) { partial_message_size_used = 0; - report(errfp, partial_message); + report(errfp, "%s", partial_message); partial_suppress_tag = 1; } } @@ -55,7 +55,7 @@ static void SMTP_auth_error(int sock, const char *msg) { SockPrintf(sock, "*\r\n"); SockRead(sock, smtp_response, sizeof(smtp_response) - 1); - if (outlevel >= O_MONITOR) report(stdout, msg); + if (outlevel >= O_MONITOR) report(stdout, "%s", msg); } static void SMTP_auth(int sock, char smtp_mode, char *username, char *password, char *buf) |