diff options
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r-- | bin/sh/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 41d8513..f92f564 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -1600,7 +1600,7 @@ getprompt(void *unused __unused) */ case 'h': case 'H': - ps[i] == '\0'; + ps[i] = '\0'; gethostname(&ps[i], PROMPTLEN - i); /* Skip to end of hostname. */ trim = (*fmt == 'h') ? '.' : '\0'; @@ -1616,7 +1616,7 @@ getprompt(void *unused __unused) */ case 'W': case 'w': - ps[i] == '\0'; + ps[i] = '\0'; getcwd(&ps[i], PROMPTLEN - i); if (*fmt == 'W') { /* Final path component only. */ |