aboutsummaryrefslogtreecommitdiff
path: root/pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'pwd.c')
-rw-r--r--pwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwd.c b/pwd.c
index 0c0c695..a9999a1 100644
--- a/pwd.c
+++ b/pwd.c
@@ -3,7 +3,7 @@
int main(void)
{
char buf[PATH_MAX];
- if (getcwd(buf, PATH_MAX) == NULL) {
+ if (getcwd(buf, sizeof(buf)) == NULL) {
perror("getcwd");
exit(EXIT_FAILURE);
}