aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-12-10 01:08:09 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-12-10 01:08:09 -0500
commitf9073e7c67584a40de2748e8fee44e40ebf782c1 (patch)
tree5a4757521cbe406797f47831633e832f4448e64c
parent0910bee606b629c9110ab18d286f13273ba9876d (diff)
downloadstasis-f9073e7c67584a40de2748e8fee44e40ebf782c1.tar.gz
Use OMC_DIRSTACK_MAX instead of magic numbers
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 6aa9ffb..86efe50 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -3,7 +3,7 @@
extern struct OMC_GLOBAL globals;
-char *dirstack[1024];
+char *dirstack[OMC_DIRSTACK_MAX];
const ssize_t dirstack_max = sizeof(dirstack) / sizeof(dirstack[0]);
ssize_t dirstack_len = 0;