aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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