From 06b335ae1f7c2c38b851e13c5f92882deeea9e9d Mon Sep 17 00:00:00 2001 From: Hokwon Song Date: Fri, 29 Mar 2013 18:31:25 +0900 Subject: [PATCH] Fixed a defect of GsmEncoding Change-Id: Id9defcceb19a896f0f63aa9d45759eed46fd7ee4 Signed-off-by: Hokwon Song --- src/text/FText_GsmEncodingCore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text/FText_GsmEncodingCore.cpp b/src/text/FText_GsmEncodingCore.cpp index fecc846..4208682 100644 --- a/src/text/FText_GsmEncodingCore.cpp +++ b/src/text/FText_GsmEncodingCore.cpp @@ -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(); } -- 2.7.4