Put a '.' character before the incremental component when unparsing a version. Fixes a test failure.
authorPeter Hosey <hg@boredzo.org>
Thu Oct 15 21:27:48 2009 -0700 (2009-10-15)
changeset 452940f6776be4ce
parent 4528 4a9574d9aaa9
child 4530 683a0b610604
Put a '.' character before the incremental component when unparsing a version. Fixes a test failure.
Common/Source/GrowlVersionUtilities.c
     1.1 --- a/Common/Source/GrowlVersionUtilities.c	Thu Oct 15 21:27:37 2009 -0700
     1.2 +++ b/Common/Source/GrowlVersionUtilities.c	Thu Oct 15 21:27:48 2009 -0700
     1.3 @@ -199,7 +199,7 @@
     1.4  	CFMutableStringRef str = CFStringCreateMutable(kCFAllocatorDefault, /*capacity*/ 28);
     1.5  	CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR("%hu.%hu"), v.major, v.minor);
     1.6  	if (v.incremental) {
     1.7 -		CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR("%hhu"), v.incremental);
     1.8 +		CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR(".%hhu"), v.incremental);
     1.9  	}
    1.10  	if (v.releaseType != releaseType_release) {
    1.11  		CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR("%u"), v.development);