bin2data: fix off by one error

This commit is contained in:
Vince Weaver 2016-12-16 16:45:22 -05:00
parent c7f04713b3
commit 825e526a3a
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ int main(int argc, char **argv) {
}
printf("%d FOR I=0 TO %d: READ X: POKE %d+I,X:NEXT I\n",
line,bytes,address);
line,bytes-1,address);
line+=10;
for(i=0;i<bytes;i++) {
read(fd,&c,1);