mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-28 09:30:41 +00:00
dos33: mkdos33fs: fix really embarassing = vs == bug
the catalog code was mostly working by accident should never have learned Pascal first
This commit is contained in:
parent
bd9ab1915a
commit
301eb86fc6
@ -429,18 +429,20 @@ continue_parsing_catalog:
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((catalog_track=0x11) && (catalog_sector==1)) {
|
catalog_track=catalog_buffer[CATALOG_NEXT_T];
|
||||||
/* in theory can only have 105 files */
|
catalog_sector=catalog_buffer[CATALOG_NEXT_S];
|
||||||
|
|
||||||
|
if ((catalog_track==0x0) && (catalog_sector==0)) {
|
||||||
|
/* FIXME: should really check this before we */
|
||||||
|
/* allocate space for the file, we leak */
|
||||||
|
|
||||||
/* if full, we have no recourse! */
|
/* if full, we have no recourse! */
|
||||||
/* can we allocate new catalog sectors */
|
/* can we auto-allocate new catalog sectors? */
|
||||||
/* and point to them?? */
|
/* and point to them?? */
|
||||||
fprintf(stderr,"Error! No more room for files!\n");
|
fprintf(stderr,"Error! No more room for files!\n");
|
||||||
return -ERROR_CATALOG_FULL;
|
return -ERROR_CATALOG_FULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
catalog_track=catalog_buffer[CATALOG_NEXT_T];
|
|
||||||
catalog_sector=catalog_buffer[CATALOG_NEXT_S];
|
|
||||||
|
|
||||||
goto continue_parsing_catalog;
|
goto continue_parsing_catalog;
|
||||||
|
|
||||||
got_a_dentry:
|
got_a_dentry:
|
||||||
|
Loading…
Reference in New Issue
Block a user