diff options
Diffstat (limited to 'libbb/simplify_path.c')
-rw-r--r-- | libbb/simplify_path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/simplify_path.c b/libbb/simplify_path.c index b714c66b6..7e68e3911 100644 --- a/libbb/simplify_path.c +++ b/libbb/simplify_path.c | |||
@@ -16,7 +16,7 @@ char *bb_simplify_path(const char *path) | |||
16 | if (path[0] == '/') | 16 | if (path[0] == '/') |
17 | start = xstrdup(path); | 17 | start = xstrdup(path); |
18 | else { | 18 | else { |
19 | s = xgetcwd(NULL); | 19 | s = xrealloc_getcwd_or_warn(NULL); |
20 | start = concat_path_file(s, path); | 20 | start = concat_path_file(s, path); |
21 | free(s); | 21 | free(s); |
22 | } | 22 | } |