From a3ff5e63e5e5976a7c56336ec3d054e57c0d5245 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sun, 18 Jul 2004 22:26:00 -0400 Subject: [PATCH] 18 July 2004 + Minor bug fix --- dos33.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dos33.c b/dos33.c index 0a64acc2..c70e6fdb 100644 --- a/dos33.c +++ b/dos33.c @@ -301,6 +301,8 @@ int dos33_allocate_sector(int fd) { /* We can use to avoid fragmentation possibly */ start_track=buffer[VTOC_LAST_ALLOC_T]%TRACKS_PER_DISK; track_dir=buffer[VTOC_ALLOC_DIRECT]; + + if (track_dir==255) track_dir=-1; if ((track_dir!=1) && (track_dir!=-1)) printf("ERROR! Invalid track dir %i\n",track_dir);