diff options
Diffstat (limited to 'lib/sislangrecord.cpp')
-rw-r--r-- | lib/sislangrecord.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/sislangrecord.cpp b/lib/sislangrecord.cpp index c79c45b..ede1d33 100644 --- a/lib/sislangrecord.cpp +++ b/lib/sislangrecord.cpp @@ -6,13 +6,12 @@ void SISLangRecord::fillFrom(uchar* buf, int* base) { - int ix = *base; - m_lang = read16(buf, &ix); + m_lang = read16(buf + *base); if (logLevel >= 2) printf("Got language %d (%s)\n", m_lang, langTable[m_lang].m_name); if (logLevel >= 1) printf("%d .. %d (%d bytes): Language record for %s\n", - *base, ix, ix - *base, langTable[m_lang].m_name); - *base = ix; + *base, *base + 2, 2, langTable[m_lang].m_name); + *base += 2; } |