[datetime module] Resolve prevent issue by adding null terminating.
authorWooHyun Jung <wh0705.jung@samsung.com>
Tue, 16 Jul 2013 08:11:00 +0000 (17:11 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 16 Jul 2013 08:22:29 +0000 (17:22 +0900)
src/modules/datetime_input_popup/datetime_input_popup.c

index b0d39ae..ccaa474 100644 (file)
@@ -434,6 +434,7 @@ _minute_validity_checking_filter(void *data, Evas_Object *obj, char **text)
 
    curr_str = elm_object_text_get(obj);
    if (curr_str) strncpy(new_str, curr_str, BUFF_SIZE);
+   new_str[BUFF_SIZE - 1] = '\0';
    strncat(new_str, insert, 1);
    if (new_str[0]) val = atoi(new_str);