You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by sa...@apache.org on 2006/07/25 07:16:08 UTC

svn commit: r425282 - /webservices/sandesha/trunk/c/src/util/utils.c

Author: sahan
Date: Mon Jul 24 22:16:08 2006
New Revision: 425282

URL: http://svn.apache.org/viewvc?rev=425282&view=rev
Log:
Fixing a bug in trim

Modified:
    webservices/sandesha/trunk/c/src/util/utils.c

Modified: webservices/sandesha/trunk/c/src/util/utils.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/utils.c?rev=425282&r1=425281&r2=425282&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/utils.c (original)
+++ webservices/sandesha/trunk/c/src/util/utils.c Mon Jul 24 22:16:08 2006
@@ -691,9 +691,10 @@
         
     len = tmp2 - tmp;
     if(len > 0)
-        ret = AXIS2_MALLOC(env->allocator, len);
+        ret = AXIS2_MALLOC(env->allocator, len + sizeof(axis2_char_t));
         
     memcpy(ret, tmp, len);
+    ret[len] = '\0';
     return ret;
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org