summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Root <John Ankarstr\xf6m>2021-06-08 09:55:22 +0200
committerCharlie Root <John Ankarstr\xf6m>2021-06-08 09:55:22 +0200
commit94f3ca40d73a47856ef6145cdd18aafa9cedccd7 (patch)
treed39cba1309f1ec5cac4f580fdce4d500c574362c
parentdc841cac73e07d9f0a8ac64717f62c0960e38453 (diff)
downloadtterm-94f3ca40d73a47856ef6145cdd18aafa9cedccd7.tar.gz
Fix /home/ rewriting
-rw-r--r--tterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tterm.c b/tterm.c
index ba46d64..ae57ab8 100644
--- a/tterm.c
+++ b/tterm.c
@@ -54,7 +54,7 @@ cwdcpy(char *path)
int len;
r = strdup(path);
- if (strncmp(path, "/home/", sizeof("/home")-1) == 0) {
+ if (strncmp(path, "/home/", sizeof("/home/")-1) == 0) {
user = getenv("USER");
len = strlen(user);
r += sizeof("/home")-1;