Fix N_SE-14993: display the colon (:) with constant size .
authoryigang.jing <yigang.jing@samsung.com>
Tue, 18 Dec 2012 06:52:09 +0000 (14:52 +0800)
committeryigang.jing <yigang.jing@samsung.com>
Tue, 18 Dec 2012 06:52:09 +0000 (14:52 +0800)
Change-Id: I671570a128880904d86626db7fa9d5cf4c3e2bba

setting-reset/src/setting-reset-settings.c

index f79c4bd..e8452c1 100755 (executable)
@@ -74,8 +74,9 @@ static char *__result_gl_text_get(void *data, Evas_Object *obj,
                }
                if (item_data->sub_desc)
                {
-                       safeStrNCat(label, ": ",HELP_MSG_BUFF_SIZE);
-                       const char *sub_desc = setting_customize_text(_(item_data->sub_desc), RESULT_FONT_SIZE, NULL, NULL);
+                       char desc[SETTING_STR_SLP_LEN + 1] = { 0, };
+                       snprintf(desc, SETTING_STR_SLP_LEN, ": %s", _(item_data->sub_desc));
+                       const char *sub_desc = setting_customize_text(desc, RESULT_FONT_SIZE, NULL, NULL);
                        safeStrNCat(label, sub_desc,HELP_MSG_BUFF_SIZE);
                        FREE(sub_desc);
                }