From 6639dfcf3d8bb983d248c697d9c9d6adb4350920 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 30 Jul 2005 00:35:20 +0000 Subject: strcpy -> strlcpy, strcat -> strlcat svn path=/trunk/; revision=4186 --- env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'env.c') 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 */ -- cgit v1.2.3