Actually use the releaseTypeNames array. Should fix unparsing of non-release versions, but doesn't, because the names are off by one.
authorPeter Hosey <hg@boredzo.org>
Thu Oct 15 21:27:48 2009 -0700 (2009-10-15)
changeset 4530683a0b610604
parent 4529 40f6776be4ce
child 4531 b6283642466e
Actually use the releaseTypeNames array. Should fix unparsing of non-release versions, but doesn't, because the names are off by one.
Common/Source/GrowlVersionUtilities.c
     1.1 --- a/Common/Source/GrowlVersionUtilities.c	Thu Oct 15 21:27:48 2009 -0700
     1.2 +++ b/Common/Source/GrowlVersionUtilities.c	Thu Oct 15 21:27:48 2009 -0700
     1.3 @@ -202,7 +202,11 @@
     1.4  		CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR(".%hhu"), v.incremental);
     1.5  	}
     1.6  	if (v.releaseType != releaseType_release) {
     1.7 -		CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR("%u"), v.development);
     1.8 +		if (v.releaseType >= numberOfReleaseTypes) {
     1.9 +			CFRelease(str);
    1.10 +			return nil;
    1.11 +		}
    1.12 +		CFStringAppendFormat(str, /*formatOptions*/ NULL, CFSTR("%@%u"), releaseTypeNames[v.releaseType], v.development);
    1.13  	}
    1.14  	return str;
    1.15  }