From d9879b72d520178201c80e337b5abb99f8dfb3f4 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 3 Apr 2009 21:42:15 +0200 Subject: [PATCH] version: allow only TOKEN_LETTER after a digit --- src/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 13f3c1a..8a21cee 100644 --- a/src/version.c +++ b/src/version.c @@ -33,7 +33,7 @@ static void next_token(int *type, apk_blob_t *blob) if (blob->len == 0 || blob->ptr[0] == 0) { n = TOKEN_END; - } else if (islower(blob->ptr[0])) { + } else if (*type == TOKEN_DIGIT && islower(blob->ptr[0])) { n = TOKEN_LETTER; } else if (*type == TOKEN_SUFFIX && isdigit(blob->ptr[0])) { n = TOKEN_SUFFIX_NO;