]> git.sur5r.net Git - cc65/commitdiff
fixed value for VLIR record table (points TO the last byte in the sector, not the...
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 6 Feb 2003 00:23:37 +0000 (00:23 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 6 Feb 2003 00:23:37 +0000 (00:23 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1930 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/grc/grc.c

index ca22e608e5baf4a4fd766333a5ad90f89492bd53..e48bffbff877dfc356699f171e7d9e4369f4820b 100644 (file)
@@ -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);