aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 1e1ea13..022e620 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -302,8 +302,8 @@ static const char *
get_evr(URPM__Package pkg) {
const char *evr = NULL;
if(pkg->provides) {
- evr = strrchr(pkg->provides, ' ')+1;
- char *tmp = strrchr(evr, ']');
+ evr = strchr(pkg->provides, ' ')+1;
+ char *tmp = strchr(evr, ']');
if(tmp)
backup_char(tmp);
} else if(pkg->h) {