Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mtftar.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int main(int argc, char *argv[])
/* have TAPE header/characteristics */
if (verbose) {
str = mtfscan_string(&s, mtfdb_tape_software(&s), '/');
fprintf(stderr, "MFT Generator: %s\n", str);
fprintf(stderr, "MTF Generator: %s\n", str);
free(str);

str = mtfscan_string(&s, mtfdb_tape_name(&s), '/');
Expand Down
10 changes: 4 additions & 6 deletions tarout.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,13 @@ int tarout_heading(struct tar_stream *t, int type,
* then chomp up to slash
*/
pfn_len = i;
for (i = 0; i - pfn_len > 155;) {
for (; i < pfn_len; i++) {
if (filename[i] == '/') {
pfn_len -= (i+1);
}
for (i = 0; pfn_len > 155; i++) {
if (filename[i] == '/') {
pfn_len = lfn - (filename + i + 1);
}
}
if (pfn_len > 0) {
pfn = filename+i+1;
pfn = filename+i;
}
} else {
pfn = filename;
Expand Down