From 8227183443be8758f68f111463e5acffa6802f22 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 23 May 2014 11:35:41 +0200 Subject: [PATCH] format fix --- src/session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index d76e8ab1..d09add30 100644 --- a/src/session.c +++ b/src/session.c @@ -75,7 +75,8 @@ int handle_smtp_session(int new_sd, struct __data *data, struct __config *cfg){ #endif if(db_conn == 0){ - send(new_sd, SMTP_RESP_421_ERR_TMP, strlen(SMTP_RESP_421_ERR_TMP), 0); + snprintf(buf, MAXBUFSIZE-1, SMTP_RESP_421_ERR_TMP, cfg->hostid); + send(new_sd, buf, strlen(buf), 0); syslog(LOG_PRIORITY, "cannot make prepared statement"); return 0; }