diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2018-04-14 22:52:44 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2018-04-14 22:52:44 +0200 |
commit | 350c399b0c81d70cb78fab58d9be1ca1a83cbaab (patch) | |
tree | 31f012d3676ba1124991e1495c5061ef75e2ec2d | |
parent | 5282cfcd546ae098130a8d4471b21f86d7f34583 (diff) | |
download | fetchmail-350c399b0c81d70cb78fab58d9be1ca1a83cbaab.tar.gz fetchmail-350c399b0c81d70cb78fab58d9be1ca1a83cbaab.tar.bz2 fetchmail-350c399b0c81d70cb78fab58d9be1ca1a83cbaab.zip |
Fix useless GCC8 warning, strncpy->memcpy for fixed string.
-rw-r--r-- | env.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |