remove unnecessary '/' from the path
[platform/core/system/libstorage.git] / 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;