diff options
Diffstat (limited to 'apps/plugins/lib/action_helper.pl')
-rwxr-xr-x | apps/plugins/lib/action_helper.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/action_helper.pl b/apps/plugins/lib/action_helper.pl index 1dfdcfd070..742419e23b 100755 --- a/apps/plugins/lib/action_helper.pl +++ b/apps/plugins/lib/action_helper.pl @@ -140,10 +140,12 @@ printf "#define CONTEXTBUFSZ %d\n\n", $len_max_context; if ($len_max_action > $len_max_context) { + print "const size_t action_helper_maxbuffer = ACTIONBUFSZ;\n"; print "static char name_buf[ACTIONBUFSZ];\n"; } else { + print "const size_t action_helper_maxbuffer = CONTEXTBUFSZ;\n"; print "static char name_buf[CONTEXTBUFSZ];\n"; } print <<EOF |