mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
src/main.c, src/warc.c: Use gnulib's base_name() instead of basename()
Reported-by: Eli Zaretskii <eliz@gnu.org>
This commit is contained in:
parent
5de8ab2a0b
commit
f6b28575cc
@ -1034,7 +1034,7 @@ main (int argc, char **argv)
|
||||
/* On VMS, lose the "dev:[dir]" prefix and the ".EXE;nnn" suffix. */
|
||||
exec_name = vms_basename (argv[0]);
|
||||
#else /* def __VMS */
|
||||
exec_name = basename (argv[0]);
|
||||
exec_name = base_name (argv[0]);
|
||||
#endif /* def __VMS [else] */
|
||||
|
||||
#ifdef WINDOWS
|
||||
|
@ -684,7 +684,7 @@ warc_write_warcinfo_record (char *filename)
|
||||
|
||||
warc_timestamp (timestamp, sizeof(timestamp));
|
||||
|
||||
filename_basename = basename (filename);
|
||||
filename_basename = base_name (filename);
|
||||
|
||||
warc_write_start_record ();
|
||||
warc_write_header ("WARC-Type", "warcinfo");
|
||||
@ -693,6 +693,8 @@ warc_write_warcinfo_record (char *filename)
|
||||
warc_write_header ("WARC-Record-ID", warc_current_warcinfo_uuid_str);
|
||||
warc_write_header ("WARC-Filename", filename_basename);
|
||||
|
||||
xfree (filename_basename);
|
||||
|
||||
/* Create content. */
|
||||
warc_tmp = warc_tempfile ();
|
||||
if (warc_tmp == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user