GIFTranslator: Use array notation instead of pointer

This commit is contained in:
John Scipione
2014-03-04 01:22:51 -05:00
parent 84bff75245
commit 5b53a45a94
+2 -2
View File
@@ -397,7 +397,7 @@ GIFLoad::ReadGIFImageData()
newEntry[x] = fOldCode[x];
//memcpy(newEntry + fOldCodeLength, fTable[fNewCode], 1);
newEntry[fOldCodeLength] = *fTable[fNewCode];
newEntry[fOldCodeLength] = fTable[fNewCode][0];
} else {
// does not exist in table
@@ -406,7 +406,7 @@ GIFLoad::ReadGIFImageData()
newEntry[x] = fOldCode[x];
//memcpy(newEntry + fOldCodeLength, fOldCode, 1);
newEntry[fOldCodeLength] = *fOldCode;
newEntry[fOldCodeLength] = fOldCode[0];
if (!OutputColor(newEntry, fOldCodeLength + 1))
goto bad_end;