diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2018-04-14 22:53:25 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2018-04-14 22:53:25 +0200 |
commit | 59e8a055428d93803a210c4aef4ad1cdd3826986 (patch) | |
tree | a68d66ad3e1b061bf74287ae177cd65b9a63ff36 | |
parent | 350c399b0c81d70cb78fab58d9be1ca1a83cbaab (diff) | |
download | fetchmail-59e8a055428d93803a210c4aef4ad1cdd3826986.tar.gz fetchmail-59e8a055428d93803a210c4aef4ad1cdd3826986.tar.bz2 fetchmail-59e8a055428d93803a210c4aef4ad1cdd3826986.zip |
Fix GCC8 format truncation warnings.
-rw-r--r-- | sink.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |