You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2008/02/06 18:25:57 UTC

svn commit: r619079 - /webservices/axis2/trunk/c/src/core/engine/rest_disp.c

Author: samisa
Date: Wed Feb  6 09:25:44 2008
New Revision: 619079

URL: http://svn.apache.org/viewvc?rev=619079&view=rev
Log:
Fixed the infinite loop. AXIS2C-969

Modified:
    webservices/axis2/trunk/c/src/core/engine/rest_disp.c

Modified: webservices/axis2/trunk/c/src/core/engine/rest_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/engine/rest_disp.c?rev=619079&r1=619078&r2=619079&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/engine/rest_disp.c (original)
+++ webservices/axis2/trunk/c/src/core/engine/rest_disp.c Wed Feb  6 09:25:44 2008
@@ -337,9 +337,10 @@
     while(AXIS2_TRUE)
     {
         rindex = axutil_rindex(loc_str_tmp, '/');
+
         if (rindex && *rindex)
         {
-            loc_str_tmp = axutil_string_substring_ending_at(loc_str_tmp, (loc_str_tmp - rindex));
+            loc_str_tmp = axutil_string_substring_ending_at(loc_str_tmp, (rindex - loc_str_tmp));
         }
         else if (pass_one)
         {
@@ -355,6 +356,7 @@
             }
             loc_str_tmp[i - 1] = '\0';
         }
+
         if (!loc_str_tmp || !*loc_str_tmp)
         {
             break;



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