diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp
index 1d4f5aea14ad27b11b5da53e6ff9cf7ce4219fa8..f11fa509d11a5bbb55fd2140d61409c48dc7cf41 100644
--- a/indra/llimagej2coj/llimagej2coj.cpp
+++ b/indra/llimagej2coj/llimagej2coj.cpp
@@ -235,8 +235,6 @@ bool LLImageJ2COJ::initEncode(LLImageJ2C &base, LLImageRaw &raw_image, int block
 
 bool LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count)
 {
-    LLTimer decode_timer;
-
     /* Extract metadata */
     /* ---------------- */
     U8* c_data = base.getData();
@@ -271,7 +269,7 @@ bool LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod
             }
 
             // extract the comment minus the markers, 00 01
-            raw_image.mComment.assign((char*)c_data + position + 6, c_length - 4);
+            raw_image.mComment.assign((char*)(c_data + position + 6), c_length - 4);
             break;
         }
         ++position;