aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-30 00:35:20 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-30 00:35:20 +0000
commit6639dfcf3d8bb983d248c697d9c9d6adb4350920 (patch)
treea872d5a87277c8b20a209a714d03c94095b96493 /env.c
parent39748b973691feacdea50448cbfdabdc5ab624e5 (diff)
downloadfetchmail-6639dfcf3d8bb983d248c697d9c9d6adb4350920.tar.gz
fetchmail-6639dfcf3d8bb983d248c697d9c9d6adb4350920.tar.bz2
fetchmail-6639dfcf3d8bb983d248c697d9c9d6adb4350920.zip
strcpy -> strlcpy, strcat -> strlcat
svn path=/trunk/; revision=4186
Diffstat (limited to 'env.c')
-rw-r--r--env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.c b/env.c
index 6ff2d99a..17d3bc66 100644
--- a/env.c
+++ b/env.c
@@ -227,7 +227,7 @@ char *rfc822timestamp(void)
* date format ctime(3) emits is not RFC822
* conformant.
*/
- strcpy(buf, ctime(&now));
+ strlcpy(buf, ctime(&now), sizeof(buf));
buf[strlen(buf)-1] = '\0'; /* remove trailing \n */
#endif /* HAVE_STRFTIME */