pg_data_s* data = (pg_data_s*)l->data;
char str_temp[256] = {'\0',};
char str_time[32] = {'\0',};
- struct tm *timeinfo = NULL;
+ struct tm timeinfo;
char *label = NULL;
char* icon = NULL;
pkgmgrinfo_pkginfo_h handle;
// description - e.g.) 25/08/2010 01:30 PM 21 time(s)
if (data->time > 0) {
- timeinfo = localtime(&data->time);
- LOGD("time : %s", asctime(timeinfo));
- strftime (str_time, 32, "%d/%m/%Y %I:%M %p", timeinfo);
+ localtime_r(&data->time, &timeinfo);
+ char buf[32];
+ LOGD("time: %s", asctime_r(&timeinfo, buf));
+ strftime (str_time, 32, "%d/%m/%Y %I:%M %p", &timeinfo);
char *str_count = dgettext("privacy-setting", "IDS_CLD_BODY_PD_TIMES");
snprintf(str_temp, sizeof(str_temp), str_count, data->count);
snprintf(str_label, sizeof(str_label), "<font_size=27>%s <font color=#3DB9CCFF>%s</font></font_size>", str_time, str_temp);
} else {
if (EINA_TRUE == ecore_file_exists(icon)) {
item->icon = strdup(icon);
- }
- else {
+ } else {
LOGD("The icon is not exist for %s. So replace it to the default icon.", label);
item->icon = strdup(DEFAULT_ICON_PATH);
}