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