Make dirname more posix compliant

This commit is contained in:
call-cc 2020-06-01 18:07:37 -04:00
parent d2c5b8a805
commit d4eb349c68
1 changed files with 1 additions and 1 deletions

View File

@ -8,6 +8,6 @@ main(int argc, char *argv[]) {
fprintf(stderr, "%s", argv[0]); fprintf(stderr, "%s", argv[0]);
return 1; return 1;
} }
puts(dir); printf("%s/\n", dir); /* Trailing slash because POSIX */
return 0; return 0;
} }