atari email archive

a collection of messages sent at Atari from 1983 to 1992.

off-by-one, (when will I learn)

(1 / 1)


	Dave Akers found a bug in eedrive.c that has apparently been there
for some time, but not happened to bite anybody else yet because it needs
a specific set of circumstances. Anyway, it takes the form of a line:

	if ( (run_offs(new_bucket) + reclen(RUN_BYTES)) > EEPROM_SIZE ) {

that _should_ be:

	if ( (run_offs(new_bucket) + reclen(RUN_BYTES)) >= EEPROM_SIZE ) {

I have corrected the copies of eedrive.c in EE$USERDISK:[68K_US], and
EE$USERDISK:[68K_US.OS_91]. You _should_ be using the latter, but I just
_know_ some of you are using the former, so...

					Sorry
		(red-faced mike crawls back into hole awaiting next dumb bug)
					Mike
Message 1 of 1

Jun 23, 1992