Lines 174-184
Link Here
|
174 |
|
174 |
|
175 |
if (NULL == egetcwd(resolved_path, SB_PATH_MAX - 2)) |
175 |
if (NULL == egetcwd(resolved_path, SB_PATH_MAX - 2)) |
176 |
return -1; |
176 |
return -1; |
177 |
char *copy = xstrdup(resolved_path); |
|
|
178 |
size_t len = strlen(resolved_path); |
177 |
size_t len = strlen(resolved_path); |
179 |
snprintf(resolved_path + len, SB_PATH_MAX - len, "/%s", path); |
178 |
snprintf(resolved_path + len, SB_PATH_MAX - len, "/%s", path); |
|
|
179 |
char *copy = xstrdup(resolved_path); |
180 |
|
180 |
|
181 |
char *ret = erealpath(resolved_path, resolved_path); |
181 |
char *ret = erealpath(copy, resolved_path); |
182 |
free(copy); |
182 |
free(copy); |
183 |
if (ret == NULL) { |
183 |
if (ret == NULL) { |
184 |
if (errno_is_too_long()) { |
184 |
if (errno_is_too_long()) { |