Fix format-truncation warning for gcc9 76/221376/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.122920 accepted/tizen/6.0/unified/hotfix/20201103.052828 accepted/tizen/6.5/unified/20211028.093107 accepted/tizen/7.0/unified/20221110.062609 accepted/tizen/7.0/unified/hotfix/20221116.104307 accepted/tizen/unified/20200105.221155 submit/tizen/20200102.132142 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 submit/tizen_6.5/20211028.161201 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 2 Jan 2020 02:33:41 +0000 (11:33 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 2 Jan 2020 02:33:45 +0000 (11:33 +0900)
Change-Id: I33f3134841dc63d9981768cddabb83853af9e11e

include/mobile_hotspot.h
packaging/ug-setting-mobileap-efl.spec
src/mh_view_main.c

index 2ac8ce1..b6b536b 100755 (executable)
@@ -92,6 +92,7 @@ extern "C" {
 #define DEVICE_NAME_LENGTH_MAX         32
 #define WIFI_PASSPHRASE_LENGTH_MIN     8
 #define WIFI_PASSPHRASE_LENGTH_MAX     63
+#define SECURITY_TYPE_LENGTH_MAX       32
 #define MH_LABEL_LENGTH_MAX            1024
 
 #define _EDJ(obj)                      elm_layout_edje_get(obj)
index b63a140..c01a09d 100755 (executable)
@@ -3,7 +3,7 @@
 
 Name:          ug-setting-mobileap-efl
 Summary:       Tethering UI Gadget Library
-Version:       1.0.161
+Version:       1.0.162
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index ecc39e5..2bbff10 100755 (executable)
@@ -1070,9 +1070,9 @@ static char *__get_help_label(void *data, Evas_Object *obj, const char *part)
 {
        mh_appdata_t *ad = (mh_appdata_t *)data;
        char buf[MH_LABEL_LENGTH_MAX] = {0, };
-       char device_name[MH_LABEL_LENGTH_MAX] = {0, };
-       char passphrase[MH_LABEL_LENGTH_MAX] = {0, };
-       char security_type[MH_LABEL_LENGTH_MAX] = {0, };
+       char device_name[DEVICE_NAME_LENGTH_MAX] = {0, };
+       char passphrase[WIFI_PASSPHRASE_LENGTH_MAX] = {0, };
+       char security_type[SECURITY_TYPE_LENGTH_MAX] = {0, };
        char *fmt = STR_SECURITY_TYPE_PS;
        char *hidden = "";
        char *ptr = NULL;