Fixed a defect of GsmEncoding
authorHokwon Song <hokwon.song@samsung.com>
Fri, 29 Mar 2013 09:31:25 +0000 (18:31 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Fri, 29 Mar 2013 09:31:25 +0000 (18:31 +0900)
Change-Id: Id9defcceb19a896f0f63aa9d45759eed46fd7ee4
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/text/FText_GsmEncodingCore.cpp

index fecc846..4208682 100644 (file)
@@ -320,7 +320,7 @@ _GsmEncodingCore::DecodeN(const byte* pSrc, int srcLength, int& retLength)
                srcLength--;
        }
 
-       *(pDst.get() + (retLength - 1)) = '\0';
+       *(pDst.get() + (retLength)) = '\0';
        SetLastResult(E_SUCCESS);
        return pDst.release();
 }