Skip to content

Commit 4c9f576

Browse files
committed
Both 0 and all ones signals end of tape directory.
1 parent 861f940 commit 4c9f576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tape-dir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static void read_directory (FILE *f, word_t old)
124124
fn1 = get_word (f);
125125
if (fn1 == -1)
126126
exit (0);
127-
else if (fn1 == 0)
127+
else if (fn1 == 0 || fn1 == 0777777777777LL)
128128
return;
129129

130130
fn2 = get_word (f);

0 commit comments

Comments
 (0)