From d4eb349c685759fdc6fda353ff6f14834ba1bc53 Mon Sep 17 00:00:00 2001 From: call-cc Date: Mon, 1 Jun 2020 18:07:37 -0400 Subject: [PATCH] Make dirname more posix compliant --- src/dirname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dirname.c b/src/dirname.c index 2e4a26b..0f75514 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -8,6 +8,6 @@ main(int argc, char *argv[]) { fprintf(stderr, "%s", argv[0]); return 1; } - puts(dir); + printf("%s/\n", dir); /* Trailing slash because POSIX */ return 0; }