aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:46:51 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-17 23:46:51 +1300
commitaccb796067efdc583dd5c11e45962333a40392ed (patch)
tree1c670fc38577e1b406435e8f4083d4e165d9435a
parentHandle path being too long (diff)
downloadtunics-accb796067efdc583dd5c11e45962333a40392ed.tar.gz
tunics-accb796067efdc583dd5c11e45962333a40392ed.zip
Use sizeof rather than constant
-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);
}