Change length of copy when snprintf is called
[platform/core/api/gesture.git] / 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);