summaryrefslogtreecommitdiff
path: root/src/version.c
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2009-04-03 21:42:15 +0200
committerNatanael Copa <natanael.copa@gmail.com>2009-04-03 21:42:15 +0200
commitd9879b72d520178201c80e337b5abb99f8dfb3f4 (patch)
tree1aa5ad89e90031a8535bea7a1b0bb5508548da37 /src/version.c
parent8fb4f6d17c41110f2f4c6d521e71701c2ef5a5b2 (diff)
downloadapk-tools-d9879b72d520178201c80e337b5abb99f8dfb3f4.tar.gz
apk-tools-d9879b72d520178201c80e337b5abb99f8dfb3f4.tar.bz2
apk-tools-d9879b72d520178201c80e337b5abb99f8dfb3f4.tar.xz
apk-tools-d9879b72d520178201c80e337b5abb99f8dfb3f4.zip
version: allow only TOKEN_LETTER after a digit
Diffstat (limited to 'src/version.c')
-rw-r--r--src/version.c2
1 files changed, 1 insertions, 1 deletions
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;