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;
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;