Fixed the last test failure in GrowlVersionUtilities by rejecting a string that contains non-whitespace characters after the version number.
authorPeter Hosey <hg@boredzo.org>
Tue Oct 13 02:34:28 2009 -0700 (2009-10-13)
changeset 4516dac1afb94166
parent 4515 8e4e8d23bf2d
child 4517 4afa80e74a25
Fixed the last test failure in GrowlVersionUtilities by rejecting a string that contains non-whitespace characters after the version number.
Common/Source/GrowlVersionUtilities.c
     1.1 --- a/Common/Source/GrowlVersionUtilities.c	Tue Oct 13 02:33:54 2009 -0700
     1.2 +++ b/Common/Source/GrowlVersionUtilities.c	Tue Oct 13 02:34:28 2009 -0700
     1.3 @@ -158,6 +158,12 @@
     1.4  				} //if(++i != length)
     1.5  			} //if(i < length)
     1.6  		} //if(i != length)
     1.7 +
     1.8 +		while ((i < length) && isspace(buf[i])) {
     1.9 +			++i;
    1.10 +		}
    1.11 +		if (i < length)
    1.12 +			parsed = false;
    1.13  	} //if(canConvert)
    1.14  
    1.15  end: