core-legacy/util.cpp
changeset 747 9563de0165f7
parent 663 e07fd1dc5290
     1.1 --- a/core-legacy/util.cpp	Fri Apr 15 00:30:15 2011 -0400
     1.2 +++ b/core-legacy/util.cpp	Sat Apr 23 21:35:10 2011 -0500
     1.3 @@ -71,7 +71,7 @@
     1.4  		size_t len = strlen(buffer);
     1.5  
     1.6  		/* Loop through buffer backwards while replacing whitespace chars with null chars */
     1.7 -		for (size_t i = len - 1; i >= 0; i--)
     1.8 +		for (size_t i = len - 1; i < len; i--)
     1.9  		{
    1.10  			if (isspace((unsigned char) buffer[i]))
    1.11  			{