From 5b192d1a85d54740d45211f9cc05b2442b1e1def Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Thu, 12 Feb 2015 10:46:08 -0500 Subject: spa() can pass a function name ("ace_main") plus the normal 10 optional arguments. --- ACE/ace/OS_NS_Thread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ACE/ace/OS_NS_Thread.cpp b/ACE/ace/OS_NS_Thread.cpp index 2d2b4cae797..598fa0f0762 100644 --- a/ACE/ace/OS_NS_Thread.cpp +++ b/ACE/ace/OS_NS_Thread.cpp @@ -5132,7 +5132,9 @@ ACE_END_VERSIONED_NAMESPACE_DECL int spa (FUNCPTR entry, ...) { - static _Vx_usr_arg_t const ACE_MAX_ARGS = 10; + // The called entrypoint can get the function name plus the normal 10 + // optional arguments. + static _Vx_usr_arg_t const ACE_MAX_ARGS = 1 + 10; static char *argv[ACE_MAX_ARGS] = { 0 }; va_list pvar; _Vx_usr_arg_t argc; -- cgit v1.2.1