comparison tools/lib64gfx.c @ 1521:b86a0aee25fa

Another encoding fix ..
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 23:17:57 +0300
parents 2801c76088b5
children 239dc13123fd
comparison
equal deleted inserted replaced
1520:2801c76088b5 1521:b86a0aee25fa
713 i, op->type, op->offs, op->offs, op->bank, size, size, op->size, op->size); 713 i, op->type, op->offs, op->offs, op->bank, size, size, op->size, op->size);
714 goto err; 714 goto err;
715 } 715 }
716 716
717 // Do we need to reallocate some more space? 717 // Do we need to reallocate some more space?
718 chksize = op->offs + size + boffs - 1; 718 chksize = op->offs + size + boffs;
719 if (!dmGrowBufCheckGrow(buf, chksize)) 719 if (!dmGrowBufCheckGrow(buf, chksize))
720 { 720 {
721 res = dmError(DMERR_MALLOC, 721 res = dmError(DMERR_MALLOC,
722 "Could not re-allocate %d bytes of memory for C64 image encoding buffer.\n", 722 "Could not re-allocate %d bytes of memory for C64 image encoding buffer.\n",
723 chksize); 723 chksize);