From 5b53a45a945f044e6ee4a2e7b06d57ad2c0becd8 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sat, 1 Mar 2014 15:57:22 -0500 Subject: [PATCH] GIFTranslator: Use array notation instead of pointer --- src/add-ons/translators/gif/GIFLoad.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/translators/gif/GIFLoad.cpp b/src/add-ons/translators/gif/GIFLoad.cpp index 2ae54aef35..ec742d267a 100644 --- a/src/add-ons/translators/gif/GIFLoad.cpp +++ b/src/add-ons/translators/gif/GIFLoad.cpp @@ -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;