[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sandesha-dev
Subject:    svn commit: r425282 - /webservices/sandesha/trunk/c/src/util/utils.c
From:       sahan () apache ! org
Date:       2006-07-25 5:16:08
Message-ID: 20060725051608.E234F1A981A () eris ! apache ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic