diff options
-rw-r--r-- | src/irc_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc_string.c b/src/irc_string.c index 8a97ba8..f711c9a 100644 --- a/src/irc_string.c +++ b/src/irc_string.c @@ -61,7 +61,7 @@ myctime(time_t value) static char buf[32]; char *p; - strcpy(buf, ctime(&value)); + strlcpy(buf, ctime(&value), sizeof(buf)); if ((p = strchr(buf, '\n')) != NULL) *p = '\0'; |