aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:53:25 +0200
committerMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:53:25 +0200
commit59e8a055428d93803a210c4aef4ad1cdd3826986 (patch)
treea68d66ad3e1b061bf74287ae177cd65b9a63ff36
parent350c399b0c81d70cb78fab58d9be1ca1a83cbaab (diff)
downloadfetchmail-59e8a055428d93803a210c4aef4ad1cdd3826986.tar.gz
fetchmail-59e8a055428d93803a210c4aef4ad1cdd3826986.tar.bz2
fetchmail-59e8a055428d93803a210c4aef4ad1cdd3826986.zip
Fix GCC8 format truncation warnings.
-rw-r--r--sink.c5
1 files changed, 3 insertions, 2 deletions
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 */