a bit more const correctness in XZPFile

This commit is contained in:
Ondřej Hošek 2012-06-30 13:55:49 +02:00
parent 00bbde88b8
commit 852fc7ef43
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ CDirectoryFolder *CXZPFile::CreateRoot()
for(hlUInt i = 0; i < this->pHeader->uiDirectoryEntryCount; i++) for(hlUInt i = 0; i < this->pHeader->uiDirectoryEntryCount; i++)
{ {
hlChar lpTemp[16] = ""; hlChar lpTemp[16] = "";
hlChar *lpLookup[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; const hlChar *lpLookup[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" };
for(hlByte *lpCRC = (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC; lpCRC < (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC + sizeof(hlUInt); lpCRC++) for(hlByte *lpCRC = (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC; lpCRC < (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC + sizeof(hlUInt); lpCRC++)
{ {
strcat(lpTemp, lpLookup[(hlByte)(*lpCRC >> 4)]); strcat(lpTemp, lpLookup[(hlByte)(*lpCRC >> 4)]);