summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ptfformat.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ptfformat.cc b/ptfformat.cc
index 1350c5d..4954546 100644
--- a/ptfformat.cc
+++ b/ptfformat.cc
@@ -798,13 +798,14 @@ void
PTFFormat::parseaudio10(void) {
uint64_t i,j,k,l;
uint8_t charlen;
+ char *s = NULL;
- if (!strstr((char*)ptfunxored, "Audio Files")) {
+ if (!(s = strstr((char*)ptfunxored, "Audio Files"))) {
return;
}
// Find end of wav file list
- k = 0;
+ k = (uint64_t)( (unsigned char *)s - ptfunxored);
while (k < len) {
if ( (ptfunxored[k ] == 0xff) &&
(ptfunxored[k+1] == 0xff) &&