summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2015-08-07 05:48:53 +1000
committerDamien Zammit <damien@zamaudio.com>2015-08-07 05:48:53 +1000
commitdadb0c56d5f1f0f018d5410a0673a2ab454932b5 (patch)
tree8e7395a153065b703be2aae5c87e7fa9e6f50928
parentfd5d0971815d30aece2a0ded3991f61d90774da7 (diff)
Another bug with offsets
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r--ptfformat.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ptfformat.cc b/ptfformat.cc
index 6ffe524..dd4bc34 100644
--- a/ptfformat.cc
+++ b/ptfformat.cc
@@ -919,7 +919,7 @@ PTFFormat::parserest10(void) {
regionspertrack = (uint8_t)(ptfunxored[k+13+lengthofname]);
- //printf("regions/track=%d\n", regionspertrack);
+ printf("regions/track=%d\n", regionspertrack);
char name[256] = {0};
for (j = 0; j < lengthofname; j++) {
name[j] = ptfunxored[j+k+13];
@@ -931,8 +931,8 @@ PTFFormat::parserest10(void) {
for (j = k; regionspertrack > 0 && j < len; j++) {
for (l = j; l < len; l++) {
if ( (ptfunxored[l ] == 0x5a) &&
- (ptfunxored[l+1] == 0x03)) {
- l = j;
+ (ptfunxored[l+1] == 0x08)) {
+ j = l+1;
break;
}
}