core-legacy/sourcehook/sh_string.h
changeset 747 9563de0165f7
parent 545 07e5df11f9fc
     1.1 --- a/core-legacy/sourcehook/sh_string.h	Fri Apr 15 00:30:15 2011 -0400
     1.2 +++ b/core-legacy/sourcehook/sh_string.h	Sat Apr 23 21:35:10 2011 -0500
     1.3 @@ -230,7 +230,7 @@
     1.4  
     1.5  		if (is_space(v[len-1]))
     1.6  		{
     1.7 -			for (i=len-1; i>=0; i--)
     1.8 +			for (i=len-1; i<len; i--)
     1.9  			{
    1.10  				if (!is_space(v[i])
    1.11  					|| (is_space(v[i]) && i==0))