Author: nandika
Date: Wed Dec 26 09:51:25 2012
New Revision: 1425869
URL: http://svn.apache.org/viewvc?rev=1425869&view=rev
Log:
Committing fix for AXIS2C-1572
Modified:
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
Modified:
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl?rev=1425869&r1=1425868&r2=1425869&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
(original)
+++
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
Wed Dec 26 09:51:25 2012
@@ -540,8 +540,8 @@
{
/* node value contain the prefix */
char *prefix_value = AXIS2_MALLOC(env->allocator,
(cp_ro - node_value - 1) + 1);
- strncpy(prefix, node_value, (cp_ro - node_value -
1));
- prefix[cp_ro - node_value - 1] = '\0';
+ strncpy(prefix_value, node_value, (cp_ro -
node_value - 1));
+ prefix_value[cp_ro - node_value - 1] = '\0';
qname_ns =
axiom_element_find_namespace_uri((axiom_element_t*)axiom_node_get_data_element(parent,
env), env, prefix_value, parent);
AXIS2_FREE(env->allocator, prefix_value);
}