summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@x1-nano.kaivo.local>2023-04-01 20:58:40 -0400
committerJakob Kaivo <jkk@x1-nano.kaivo.local>2023-04-01 20:58:40 -0400
commitd8fcf51d92039f8edfffafada18f78b047afae8f (patch)
treeb74369a8c0c601da11c84e14f1744b6409f2eb72
parent713aa3cf266fd576cdfc68234812bb2743b6f808 (diff)
temporarily hack so "cd .." works
-rw-r--r--cd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cd.c b/cd.c
index 29aba49..a494901 100644
--- a/cd.c
+++ b/cd.c
@@ -49,7 +49,8 @@ static void cd_in_cdpath(size_t n, char p[])
static void cd_make_canonical(char *path)
{
- char tmp[strlen(path)];
+ char tmp[strlen(path) + 1];
+ strcpy(tmp, path);
/* TODO */