1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00

does not pad the last vlir chain to n*254 bytes filesize

git-svn-id: svn://svn.cc65.org/cc65/trunk@2075 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst 2003-04-26 12:57:30 +00:00
parent da57034f4e
commit 951785d434

View File

@ -104,7 +104,12 @@ int blocks,rest;
++rest;
}
vlirtabt[j]=blocks+1; vlirtabs[j]=rest;
fwrite(buffer,1,(blocks+1)*254,outCVT);
/* do not pad the last chain - it doesn't change or break anything
but filesize in bytes of .cvt will be identical to native cvt */
if (i==(argc-1))
fwrite(buffer,1,bytes,outCVT);
else
fwrite(buffer,1,(blocks+1)*254,outCVT);
}
++j;
++i;