diff options
Diffstat (limited to 'core/cwd.c')
| -rw-r--r-- | core/cwd.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -6,6 +6,12 @@ char buf[1024] = { 0 }; int main() { getcwd(buf, 1024); - wstdf("%s\n", buf); + + if (buf[0] == '/' && buf[1] == 0) { + wstdf("%s\n", buf); + } else { + wstdf("%s/\n", buf); + } + return 0; } |