aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-17 09:33:45 +0000
committerOmar Polo <op@omarpolo.com>2021-01-17 09:33:45 +0000
commitd939d0f09e44d8bee3fd8f1519deddeb20b804ef (patch)
treef8110e7f5d3d0313cf127238ed811d0f4cc254ca /gmid.c
parent881dc835d05029b30bcb7dd229d2a0583fa6e360 (diff)
switch to getcwd
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.c b/gmid.c
index 56250f4..1ab4628 100644
--- a/gmid.c
+++ b/gmid.c
@@ -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);