aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-11-10 20:38:06 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-11-10 20:38:06 +0000
commitcfde1cceb2c9c460036fd512e3bac1d579c74af6 (patch)
treec396c99a28efbdab430ce8eb6fbcb8c25367ebf5 /transact.c
parent4f3f4551ff4f97d6278956fc525a78c1fe0866fa (diff)
downloadfetchmail-cfde1cceb2c9c460036fd512e3bac1d579c74af6.tar.gz
fetchmail-cfde1cceb2c9c460036fd512e3bac1d579c74af6.tar.bz2
fetchmail-cfde1cceb2c9c460036fd512e3bac1d579c74af6.zip
Misc. sprintf and pid_t fixes.
svn path=/trunk/; revision=4000
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/transact.c b/transact.c
index 8a477345..247d3e65 100644
--- a/transact.c
+++ b/transact.c
@@ -1148,8 +1148,9 @@ int readheaders(int sock,
VERSION);
if (ctl->tracepolls)
{
- sprintf(buf + strlen(buf), " polling %s account %s",
- ctl->server.pollname,
+ snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
+ " polling %s account %s",
+ ctl->server.pollname,
ctl->remotename);
}
snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), ")\r\n");