From 2de779bc81e17de8418f60f71e03bb9bb0ceccf3 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Fri, 15 Sep 2017 17:29:15 +0900 Subject: [PATCH] [WGID-14981, 171089, 260155] bug fix Change-Id: Id39c1a5c572a625ee5142cc10f8e4b73ae3bf606 --- packaging/wifi-efl-ug.spec | 2 +- sources/ui-gadget/viewers-layout/viewer_manager.c | 2 -- sources/ui-gadget/viewers-layout/wifi_viewer_list.c | 2 +- sources/wifi-syspopup/viewer-popups/view-main.c | 3 +++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packaging/wifi-efl-ug.spec b/packaging/wifi-efl-ug.spec index 1616d7e..4832ac0 100644 --- a/packaging/wifi-efl-ug.spec +++ b/packaging/wifi-efl-ug.spec @@ -1,6 +1,6 @@ Name: wifi-efl-ug Summary: Wi-Fi UI Gadget for TIZEN -Version: 1.0.233 +Version: 1.0.234 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/sources/ui-gadget/viewers-layout/viewer_manager.c b/sources/ui-gadget/viewers-layout/viewer_manager.c index ec135af..96e6834 100755 --- a/sources/ui-gadget/viewers-layout/viewer_manager.c +++ b/sources/ui-gadget/viewers-layout/viewer_manager.c @@ -447,8 +447,6 @@ static void _ctxpopup_move(Evas_Object *parent) if (0 == rotate_angle || 180 == rotate_angle) evas_object_move(manager_object->ctxpopup, w/2, h); - else if (90 == rotate_angle) - evas_object_move(manager_object->ctxpopup, h/2, w); else evas_object_move(manager_object->ctxpopup, h/2, w); diff --git a/sources/ui-gadget/viewers-layout/wifi_viewer_list.c b/sources/ui-gadget/viewers-layout/wifi_viewer_list.c index 0777901..7b3693e 100755 --- a/sources/ui-gadget/viewers-layout/wifi_viewer_list.c +++ b/sources/ui-gadget/viewers-layout/wifi_viewer_list.c @@ -77,7 +77,7 @@ char* ConvertRGBAtoHex(int r, int g, int b, int a) string = g_try_malloc0(sizeof(char)*255); if (string != NULL) { hexcolor = (r << 24) + (g << 16) + (b << 8) + a; - g_snprintf(string, sizeof(string), "%08x", hexcolor); + g_snprintf(string, 255, "%08x", hexcolor); } return string; diff --git a/sources/wifi-syspopup/viewer-popups/view-main.c b/sources/wifi-syspopup/viewer-popups/view-main.c index 9378187..db6ca15 100755 --- a/sources/wifi-syspopup/viewer-popups/view-main.c +++ b/sources/wifi-syspopup/viewer-popups/view-main.c @@ -773,6 +773,9 @@ static wifi_device_info_t *view_main_item_device_info_create(wifi_manager_ap_h a wifi_device_info_t *wifi_device = g_try_new0(wifi_device_info_t, 1); wifi_manager_security_type_e sec_type; + if (wifi_device == NULL) + return NULL; + if (WIFI_MANAGER_ERROR_NONE != wifi_manager_ap_clone(&(wifi_device->ap), ap)) { g_free(wifi_device); return NULL; -- 2.7.4