Change length of copy when snprintf is called 79/244079/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121559 accepted/tizen/6.0/unified/hotfix/20201103.003821 accepted/tizen/6.0/unified/hotfix/20201103.050703 accepted/tizen/unified/20200918.073715 submit/tizen/20200915.015600 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
authorwn.jang <wn.jang@samsung.com>
Tue, 15 Sep 2020 01:47:00 +0000 (10:47 +0900)
committerwn.jang <wn.jang@samsung.com>
Tue, 15 Sep 2020 01:47:00 +0000 (10:47 +0900)
Change-Id: I3e91edaa02d236bcd0234e65f0bb63477298a95f

server/gestured_dbus.c

index 86026d0..f33ef15 100644 (file)
@@ -558,7 +558,7 @@ int gestured_register_dbus_interface(void)
        int size = 0;
        int ret = 0;
 
-       snprintf(xml_file_path, strlen(GESTURE_SHARED_RESOURCE_PATH) + 27, "%s/capi-ui-gesture-gdbus.xml", GESTURE_SHARED_RESOURCE_PATH);
+       snprintf(xml_file_path, 256, "%s/capi-ui-gesture-gdbus.xml", GESTURE_SHARED_RESOURCE_PATH);
        ret = access(xml_file_path, R_OK);
        if (0 != ret) {
                LOGE("Introspection file is not exist. path(%s)", xml_file_path);