summaryrefslogtreecommitdiff
path: root/build/parseReqs.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-06-18 14:33:16 +0000
committerjbj <devnull@localhost>1999-06-18 14:33:16 +0000
commit35f20f2eceeaf27b44d8d5639e2a95277a4dc792 (patch)
tree5b76a4b1146f3da416fdf017df7811d83ef76378 /build/parseReqs.c
parentc2cef6642004897e415dc203eeae436d65cf87fa (diff)
downloadlibrpm-tizen-35f20f2eceeaf27b44d8d5639e2a95277a4dc792.tar.gz
librpm-tizen-35f20f2eceeaf27b44d8d5639e2a95277a4dc792.tar.bz2
librpm-tizen-35f20f2eceeaf27b44d8d5639e2a95277a4dc792.zip
Incorrect sense matched.
CVS patchset: 3101 CVS date: 1999/06/18 14:33:16
Diffstat (limited to 'build/parseReqs.c')
-rw-r--r--build/parseReqs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/parseReqs.c b/build/parseReqs.c
index d7e0b07f3..b10ae01f9 100644
--- a/build/parseReqs.c
+++ b/build/parseReqs.c
@@ -129,7 +129,7 @@ int parseRCPOT(Spec spec, Package pkg, const char *field, int tag, int index)
if (ve > v) {
struct ReqComp *rc;
for (rc = ReqComparisons; rc->token != NULL; rc++) {
- if (strncmp(v, rc->token, (ve-v)))
+ if ((ve-v) != strlen(rc->token) || strncmp(v, rc->token, (ve-v)))
continue;
if (r[0] == '/') {
@@ -138,6 +138,7 @@ int parseRCPOT(Spec spec, Package pkg, const char *field, int tag, int index)
spec->lineNum, spec->line);
return RPMERR_BADSPEC;
}
+
switch(tag) {
case RPMTAG_PROVIDES:
case RPMTAG_OBSOLETES: