aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avahi-daemon/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-daemon/glob.c b/avahi-daemon/glob.c
index 7819279..340709a 100644
--- a/avahi-daemon/glob.c
+++ b/avahi-daemon/glob.c
@@ -188,7 +188,7 @@ glob(const char *pattern, int flags, int (*errfunc)(const char *, int), glob_t *
if (flags & GLOB_LIMIT) {
limit = pglob->gl_matchc;
if (limit == 0)
- limit = ARG_MAX;
+ limit = sysconf(_SC_ARG_MAX);
} else
limit = 0;
pglob->gl_flags = flags & ~GLOB_MAGCHAR;