diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-17 09:33:45 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-17 09:33:45 +0000 |
commit | d939d0f09e44d8bee3fd8f1519deddeb20b804ef (patch) | |
tree | f8110e7f5d3d0313cf127238ed811d0f4cc254ca /gmid.c | |
parent | 881dc835d05029b30bcb7dd229d2a0583fa6e360 (diff) |
switch to getcwd
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -673,7 +673,7 @@ absolutify_path(const char *path) if (*path == '/') return strdup(path); - wd = getwd(NULL); + wd = getcwd(NULL, 0); if (asprintf(&r, "%s/%s", wd, path) == -1) err(1, "asprintf"); free(wd); |