diff options
| author | Jakob Kaivo <jkk@x1-nano.kaivo.local> | 2023-04-01 20:58:40 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@x1-nano.kaivo.local> | 2023-04-01 20:58:40 -0400 |
| commit | d8fcf51d92039f8edfffafada18f78b047afae8f (patch) | |
| tree | b74369a8c0c601da11c84e14f1744b6409f2eb72 | |
| parent | 713aa3cf266fd576cdfc68234812bb2743b6f808 (diff) | |
temporarily hack so "cd .." works
| -rw-r--r-- | cd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |
