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:
parent
e39be32838
commit
19661f1d9a
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user