diff options
author | Fritz Elfert <felfert@to.com> | 2003-02-05 07:59:09 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2003-02-05 07:59:09 +0000 |
commit | f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85 (patch) | |
tree | 166bf2df5ca4fc40904af30a56a0de88683baf8d /lib/siscomponentrecord.cpp | |
parent | 27ba222abbf3137eef49e31ac521de01d39c8088 (diff) | |
download | plptools-f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85.tar.gz plptools-f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85.tar.bz2 plptools-f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85.zip |
- Changes for compiling with gcc 3.2
Diffstat (limited to 'lib/siscomponentrecord.cpp')
-rw-r--r-- | lib/siscomponentrecord.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/siscomponentrecord.cpp b/lib/siscomponentrecord.cpp index ac5ba6d..de382ad 100644 --- a/lib/siscomponentrecord.cpp +++ b/lib/siscomponentrecord.cpp @@ -83,10 +83,10 @@ SISComponentNameRecord::fillFrom(uint8_t* buf, int* basePos, off_t len, sisFile->getLanguage(i)->m_name, m_nameLengths[i], buf + m_namePtrs[i]); - int len = m_nameLengths[i]; - m_names[i] = new uint8_t[len + 1]; - memcpy(m_names[i], buf + m_namePtrs[i], len); - m_names[i][len] = 0; + int nlen = m_nameLengths[i]; + m_names[i] = new uint8_t[nlen + 1]; + memcpy(m_names[i], buf + m_namePtrs[i], nlen); + m_names[i][nlen] = 0; } if (logLevel >= 1) printf(_("%d .. %d (%d bytes): Name records\n"), base, base + size, size); |