From 60b453bfda7162a373fd2c1c1b66fd7975b610e6 Mon Sep 17 00:00:00 2001 From: taeyoung Date: Thu, 29 Sep 2016 16:19:25 +0900 Subject: [PATCH] remove unnecessary '/' from the path Change-Id: I79d42621397c468238f7c4955725fba82a897b3f Signed-off-by: taeyoung --- src/storage-inhouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage-inhouse.c b/src/storage-inhouse.c index 9216393..f4698de 100755 --- a/src/storage-inhouse.c +++ b/src/storage-inhouse.c @@ -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; -- 2.7.4