aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:52:44 +0200
committerMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:52:44 +0200
commit350c399b0c81d70cb78fab58d9be1ca1a83cbaab (patch)
tree31f012d3676ba1124991e1495c5061ef75e2ec2d
parent5282cfcd546ae098130a8d4471b21f86d7f34583 (diff)
downloadfetchmail-350c399b0c81d70cb78fab58d9be1ca1a83cbaab.tar.gz
fetchmail-350c399b0c81d70cb78fab58d9be1ca1a83cbaab.tar.bz2
fetchmail-350c399b0c81d70cb78fab58d9be1ca1a83cbaab.zip
Fix useless GCC8 warning, strncpy->memcpy for fixed string.
-rw-r--r--env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.c b/env.c
index 1192e14a..f1fb2cdf 100644
--- a/env.c
+++ b/env.c
@@ -243,7 +243,7 @@ char *rfc822timestamp(void)
#if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS)
setlocale (LC_TIME, "");
#endif
- strncpy(strstr(buf, "XXXXX"), tzoffset(&now), 5);
+ memcpy(strstr(buf, "XXXXX"), tzoffset(&now), 5);
#else
/*
* This is really just a portability fallback, as the