solv_cmp_version_part_haiku(): Fix copy and paste bug
authorIngo Weinhold <ingo_weinhold@gmx.de>
Sun, 16 Jun 2013 23:23:10 +0000 (01:23 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 17 Jun 2013 12:43:36 +0000 (14:43 +0200)
src/evr.c

index 302c44d..1f65772 100644 (file)
--- a/src/evr.c
+++ b/src/evr.c
@@ -242,7 +242,7 @@ solv_cmp_version_part_haiku(const char *s1, const char *q1, const char *s2,
 
       while (part1 + 1 < s1 && *part1 == '0')
         part1++;
-      while (part2 + 1 < s1 && *part2 == '0')
+      while (part2 + 1 < s2 && *part2 == '0')
         part2++;
 
       len1 = s1 - part1;