[jbossnative-commits] JBoss Native SVN: r965 - trunk/sight/native/share.

jbossnative-commits at lists.jboss.org jbossnative-commits at lists.jboss.org
Mon Sep 3 03:01:53 EDT 2007


Author: mladen.turk at jboss.com
Date: 2007-09-03 03:01:53 -0400 (Mon, 03 Sep 2007)
New Revision: 965

Modified:
   trunk/sight/native/share/jnu.c
Log:
Fix typo

Modified: trunk/sight/native/share/jnu.c
===================================================================
--- trunk/sight/native/share/jnu.c	2007-09-03 06:47:03 UTC (rev 964)
+++ trunk/sight/native/share/jnu.c	2007-09-03 07:01:53 UTC (rev 965)
@@ -226,7 +226,7 @@
 
         if (rd > 0) {            
             /* Remove all trailing zero and space characters */
-            for (rd = i - 1; i >= 0 && (apr_iscntrl(b[i]) ||
+            for (i = rd - 1; i >= 0 && (apr_iscntrl(b[i]) ||
                  apr_isspace(b[i])); i--)
                 ;
             b[i + 1] = '\0';




More information about the jbossnative-commits mailing list