Release 4.0.0-preview1-00258
[platform/core/csapi/tizenfx.git] / src / Tizen.Tapi / Tizen.Tapi / SatStructs.cs
index cac7b82..99c6e07 100755 (executable)
@@ -344,7 +344,9 @@ namespace Tizen.Tapi
         {
             SatTextInfo textInfo = new SatTextInfo();
             textInfo.Length = textStruct.Length;
-            Marshal.Copy(textStruct.DataString, textInfo.Data, 0, 501);
+            byte[] data = new byte[textStruct.Length];
+            Marshal.Copy(textStruct.DataString, data, 0, textInfo.Length);
+            textInfo.Data = data;
             return textInfo;
         }