summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2015-02-12 10:46:08 -0500
committerSteve Huston <shuston@riverace.com>2015-02-12 10:46:08 -0500
commit5b192d1a85d54740d45211f9cc05b2442b1e1def (patch)
treecff96e94eee996dd9da4185d090f985d9ce39dca
parenta16e1f2296eb85eed6da71b009d72223e0438a74 (diff)
downloadATCD-5b192d1a85d54740d45211f9cc05b2442b1e1def.tar.gz
spa() can pass a function name ("ace_main") plus the normal 10 optional arguments.
-rw-r--r--ACE/ace/OS_NS_Thread.cpp4
1 files changed, 3 insertions, 1 deletions
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;