remove unnecessary '/' from the path 50/90250/1 accepted/tizen/3.0/ivi/20161011.050600 accepted/tizen/3.0/mobile/20161015.033727 accepted/tizen/3.0/tv/20161016.004926 accepted/tizen/3.0/wearable/20161015.083248 accepted/tizen/common/20160929.163455 accepted/tizen/ivi/20160929.233826 accepted/tizen/mobile/20160929.233822 accepted/tizen/tv/20160929.233813 accepted/tizen/wearable/20160929.233818 submit/tizen/20160929.072529 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000003 submit/tizen_3.0_wearable/20161015.000003
authortaeyoung <ty317.kim@samsung.com>
Thu, 29 Sep 2016 07:19:25 +0000 (16:19 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 29 Sep 2016 07:19:25 +0000 (16:19 +0900)
Change-Id: I79d42621397c468238f7c4955725fba82a897b3f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/storage-inhouse.c

index 9216393..f4698de 100755 (executable)
@@ -70,7 +70,7 @@ API int storage_get_compat_internal_path(const char* origin, int len, char* comp
                return -1;
        }
 
-       r = snprintf(compat, len, "%s/%s", COMPAT_DIR, origin + str_len);
+       r = snprintf(compat, len, "%s%s", COMPAT_DIR, origin + str_len);
        if (r < 0) {
                _E("Failed to create new path");
                return -1;
@@ -120,7 +120,7 @@ API int storage_get_origin_internal_path(const char* compat, int len, char* orig
                return -1;
        }
 
-       r = snprintf(origin, len, "%s/%s", tzplatform_getenv(TZ_USER_CONTENT), compat + compat_len);
+       r = snprintf(origin, len, "%s%s", tzplatform_getenv(TZ_USER_CONTENT), compat + compat_len);
        if (r < 0) {
                _E("failed to create new path");
                return -1;