1
0
mirror of https://github.com/mirror/wget.git synced 2025-04-11 20:10:27 +08:00

* src/ftp-ls.c (ftp_parse_vms_ls): Use snprintf instead of strcpy/strcat

This commit is contained in:
Tim Rühsen 2019-02-20 10:31:12 +01:00
parent e39be32838
commit 19661f1d9a

View File

@ -857,8 +857,7 @@ ftp_parse_vms_ls (FILE *fp)
{
/* Date. */
DEBUGP (("Date.\n"));
strcpy( date_str, tok);
strcat( date_str, " ");
snprintf(date_str, sizeof(date_str), "%s ", tok);
}
else if ((strlen (tok) < 12) && (strchr( tok, ':') != NULL))
{