index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-01-02 14:31:46 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-02 12:58:51 -0600 |
commit | 29e94dc065c8d85139ec16c462d835ad63f87984 (patch) | |
tree | a6030c94fb496fc9d47ce48773b72faf29c39c27 /lib/libalpm/be_package.c | |
parent | eb5cb8ec02bf31b4a5e84ea38c196dae67bf2aac (diff) |
-rw-r--r-- | lib/libalpm/be_package.c | 2 |
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index c602996d..fccbb10a 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -178,7 +178,7 @@ static int parse_descfile(alpm_handle_t *handle, struct archive *a, alpm_pkg_t * /* line is always in this format: "key = value" * we can be sure the " = " exists, so look for that */ ptr = memchr(key, ' ', len); - if(!ptr || ptr - key + 2 > len || memcmp(ptr, " = ", 3) != 0) { + if(!ptr || (size_t)(ptr - key + 2) > len || memcmp(ptr, " = ", 3) != 0) { _alpm_log(handle, ALPM_LOG_DEBUG, "%s: syntax error in description file line %d\n", newpkg->name ? newpkg->name : "error", linenum); |