ODS2: Fix malloc assertion fail encountered in copy

RFM VAR marker size computed incorrectly

Fixes #10
This commit is contained in:
Timothe Litt 2023-04-11 10:22:02 -04:00
parent 0a850cad48
commit 6d42eb35fd

View File

@ -1730,7 +1730,7 @@ vmscond_t sys_put( struct RAB *rab ) {
break;
default:
if( rfmvar &&
( (blocks * 512) >= (offset + 2 + (offset & 1)) ) ) {
( (blocks * 512) > (offset + 2 + (offset & 1)) ) ) {
buffer[(offset|1)+0] = -1;
buffer[(offset|1)+1] = -1;
}