Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 33526 invoked from network); 24 Feb 2008 16:38:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2008 16:38:09 -0000 Received: (qmail 49075 invoked by uid 500); 24 Feb 2008 16:38:04 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 48955 invoked by uid 500); 24 Feb 2008 16:38:04 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 48937 invoked by uid 500); 24 Feb 2008 16:38:03 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 48934 invoked by uid 99); 24 Feb 2008 16:38:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Feb 2008 08:38:03 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Feb 2008 16:37:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2BC581A983A; Sun, 24 Feb 2008 08:37:48 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r630634 - /webservices/axis2/trunk/c/util/src/string.c Date: Sun, 24 Feb 2008 16:37:47 -0000 To: axis2-cvs@ws.apache.org From: senaka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080224163748.2BC581A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: senaka Date: Sun Feb 24 08:37:47 2008 New Revision: 630634 URL: http://svn.apache.org/viewvc?rev=630634&view=rev Log: Fixing bug in strrtrim Modified: webservices/axis2/trunk/c/util/src/string.c Modified: webservices/axis2/trunk/c/util/src/string.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/string.c?rev=630634&r1=630633&r2=630634&view=diff ============================================================================== --- webservices/axis2/trunk/c/util/src/string.c (original) +++ webservices/axis2/trunk/c/util/src/string.c Sun Feb 24 08:37:47 2008 @@ -665,17 +665,20 @@ AXIS2_EXTERN axis2_char_t *AXIS2_CALL axutil_strrtrim( const axutil_env_t * env, - const axis2_char_t * _s, + const axis2_char_t * _in, const axis2_char_t * _trim) { axis2_char_t *__tail; + axis2_char_t *_s = NULL; axis2_char_t *ret = NULL; + _s = axutil_strdup(env, _in); + if (!_s) { return NULL; } - __tail = ((axis2_char_t *) _s) + axutil_strlen(_s); + __tail = _s + axutil_strlen(_s); if (!_trim) { _trim = " \t\n\r"; @@ -684,7 +687,7 @@ { if (!strchr(_trim, *__tail)) { - ret = (axis2_char_t *) axutil_strdup(env, _s); + ret = _s; break; } *__tail = 0; --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org