You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2011/07/10 17:30:21 UTC
svn commit: r1144879 - /tomcat/native/trunk/native/src/proc.c
Author: rjung
Date: Sun Jul 10 15:30:20 2011
New Revision: 1144879
URL: http://svn.apache.org/viewvc?rev=1144879&view=rev
Log:
Forward port of r1056218 to tcnative trunk.
Fix for 49557.
Modified:
tomcat/native/trunk/native/src/proc.c
Modified: tomcat/native/trunk/native/src/proc.c
URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/src/proc.c?rev=1144879&r1=1144878&r2=1144879&view=diff
==============================================================================
--- tomcat/native/trunk/native/src/proc.c (original)
+++ tomcat/native/trunk/native/src/proc.c Sun Jul 10 15:30:20 2011
@@ -211,7 +211,7 @@ TCN_IMPLEMENT_CALL(jint, Proc, create)(T
if (args)
as = (*e)->GetArrayLength(e, args);
if (env)
- es = (*e)->GetArrayLength(e, args);
+ es = (*e)->GetArrayLength(e, env);
if (as > (MAX_ARGS_SIZE - 1) || es > (MAX_ENV_SIZE - 2)) {
TCN_FREE_CSTRING(progname);
return APR_EINVAL;
@@ -228,7 +228,7 @@ TCN_IMPLEMENT_CALL(jint, Proc, create)(T
if (es) {
for (i = 0; i < es; i++) {
jstring str = (*e)->GetObjectArrayElement(e, env, i);
- s_env[i+1] = tcn_get_string(e, str);
+ s_env[i] = tcn_get_string(e, str);
(*e)->DeleteLocalRef(e, str);
}
#ifdef WIN32
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org