diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2009-04-03 21:42:15 +0200 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2009-04-03 21:42:15 +0200 |
commit | d9879b72d520178201c80e337b5abb99f8dfb3f4 (patch) | |
tree | 1aa5ad89e90031a8535bea7a1b0bb5508548da37 | |
parent | 8fb4f6d17c41110f2f4c6d521e71701c2ef5a5b2 (diff) | |
download | apk-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
-rw-r--r-- | src/version.c | 2 |
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; |