retro-vault / libcpm3-z80

Standard C library for CP/M 3.
MIT License
11 stars 7 forks source link

Error in Posix C file write function #1

Closed cvandongen684 closed 2 years ago

cvandongen684 commented 2 years ago

Line 75 of libcpm3-z80-main/src/file/write.c: bdosret(F_WRITE, (uint16_t)&(fdblk->dma),&result); should be: bdosret(F_WRITE, (uint16_t)&(fdblk->fcb),&result); as BDOS function 21 expects the address of the FCB.

tstih commented 2 years ago

Thank you. It will be fixed tonight. The write functions are latest addition (written from scratch) so I guess there are more bugs hidden in there..

tstih commented 2 years ago

Fixed.