From: izydorst Date: Thu, 6 Feb 2003 00:23:37 +0000 (+0000) Subject: fixed value for VLIR record table (points TO the last byte in the sector, not the... X-Git-Tag: V2.12.0~1758 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=443efb5f3a792d2739169041522f4e3a059ebf7b;p=cc65 fixed value for VLIR record table (points TO the last byte in the sector, not the next one) git-svn-id: svn://svn.cc65.org/cc65/trunk@1930 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/grc/grc.c b/src/grc/grc.c index ca22e608e..e48bffbff 100644 --- a/src/grc/grc.c +++ b/src/grc/grc.c @@ -96,7 +96,7 @@ int blocks,rest; if (bytes==0) AbEnd("couldn't read %s:%s\n",argv[i],strerror(errno)); blocks = bytes / 254; - rest = bytes % 254 + 2; + rest = bytes % 254 + 1; if (rest>255) rest=255; vlirtabt[j]=blocks+1; vlirtabs[j]=rest; fwrite(buffer,1,(blocks+1)*254,outCVT);