summaryrefslogtreecommitdiff
path: root/top/maint.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-09-17 11:38:36 +0200
committerJim Meyering <meyering@redhat.com>2012-09-18 08:51:48 +0200
commitb6de466199bc46519e81683860e4905e9cb90648 (patch)
tree3e0635a58911590afd2fc8c5715aac15a7ff69e6 /top/maint.mk
parentaef4fe8a5f7911ac63a9adc1c3e59ddfb4a99cd9 (diff)
downloadgnulib-b6de466199bc46519e81683860e4905e9cb90648.tar.gz
maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
* top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
Diffstat (limited to 'top/maint.mk')
-rw-r--r--top/maint.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 9c660a14be..f77d0c1e27 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1216,7 +1216,7 @@ sc_Wundef_boolean:
# not be constant, or might overflow a stack. In general, use PATH_MAX as
# a limit, not an array or alloca size.
sc_prohibit_path_max_allocation:
- @prohibit='(\balloca *\([^)]*|\[[^]]*)PATH_MAX' \
+ @prohibit='(\balloca *\([^)]*|\[[^]]*)\bPATH_MAX' \
halt='Avoid stack allocations of size PATH_MAX' \
$(_sc_search_regexp)