1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fix filename printing when using -l option.

PR: 43574
This commit is contained in:
Søren Schmidt 2003-05-04 10:03:15 +00:00
parent 295d40f6b6
commit 01c31bbeca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114660

View File

@ -49,7 +49,7 @@
struct track_info {
int file;
char *file_name;
char file_name[MAXPATHLEN + 1];
off_t file_size;
int block_size;
int block_type;
@ -336,7 +336,7 @@ add_track(char *name, int block_size, int block_type, int nogap)
if (fstat(file, &sb) < 0)
err(EX_IOERR, "fstat(%s)", name);
tracks[notracks].file = file;
tracks[notracks].file_name = name;
strncpy(tracks[notracks].file_name, name, MAXPATHLEN);
if (file == STDIN_FILENO)
tracks[notracks].file_size = -1;
else