From 59e8a055428d93803a210c4aef4ad1cdd3826986 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 14 Apr 2018 22:53:25 +0200 Subject: Fix GCC8 format truncation warnings. --- sink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index 7b1226f3..e025a412 100644 --- a/sink.c +++ b/sink.c @@ -245,7 +245,8 @@ static void sanitize(char *s) char *rcpt_address(struct query *ctl, const char *id, int usesmtpname) { - static char addr[HOSTLEN+USERNAMELEN+1]; + static char addr[HOSTLEN+USERNAMELEN+1000]; + if (strchr(id, '@')) { snprintf(addr, sizeof (addr), "%s", id); @@ -844,7 +845,7 @@ static int open_smtp_sink(struct query *ctl, struct msgblk *msg, const char *ap; struct idlist *idp; char options[MSGBUFSIZE]; - char addr[HOSTLEN+USERNAMELEN+1]; + char addr[HOSTLEN+USERNAMELEN+1000]; #ifdef EXPLICIT_BOUNCE_ON_BAD_ADDRESS char **from_responses; #endif /* EXPLICIT_BOUNCE_ON_BAD_ADDRESS */ -- cgit v1.2.3