aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 83319ad..96bc5a1 100644
--- a/noice.c
+++ b/noice.c
@@ -614,7 +614,7 @@ redraw(char *path)
ncols = PATH_MAX;
strlcpy(cwd, path, ncols);
cwd[ncols - strlen(CWD) - 1] = '\0';
- if (!realpath(cwd, cwdresolved)) {
+ if (!realpath(path, cwdresolved)) {
printmsg("Cannot resolve path");
return;
}