Fix svace error(150735) 30/98030/2
authorHyunjee Kim <hj0426.kim@samsung.com>
Wed, 16 Nov 2016 01:45:33 +0000 (10:45 +0900)
committerhyunjee Kim <hj0426.kim@samsung.com>
Wed, 16 Nov 2016 02:18:19 +0000 (18:18 -0800)
Change-Id: I99c3802ac766656d0edb94814d84daff4b2d4631
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
src/utils_i18n_ubidi.c

index 9dd4ea8..43b9697 100644 (file)
@@ -271,7 +271,7 @@ int i18n_ubidi_get_text(const i18n_ubidi_h ubidi, char **text)
        *text = (char *)malloc(len + 1);
        retv_if(*text == NULL, I18N_ERROR_OUT_OF_MEMORY);
 
-       strcpy(*text, _text);
+       strncpy(*text, _text, len);
 
        return I18N_ERROR_NONE;
 }