Make dirname more posix compliant
This commit is contained in:
parent
d2c5b8a805
commit
d4eb349c68
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue