18 July 2004

+ Minor bug fix
This commit is contained in:
Vince Weaver 2004-07-18 22:26:00 -04:00
parent 25b5b8a946
commit a3ff5e63e5
1 changed files with 2 additions and 0 deletions

View File

@ -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);