diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 17:01:45 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 17:01:45 +0000 |
commit | 7b464090c26153e808b90726e2faa58029f6bb88 (patch) | |
tree | e57d15b8c32ea420f9a5131a25d23a818f3498fe /apt-pkg | |
parent | c7a896a4961fced8c3854bcceda97992432643d4 (diff) |
- Don't fall off the end of the buffer when comparing v...
Author: mdz
Date: 2003-07-18 14:13:59 GMT
- Don't fall off the end of the buffer when comparing versions.
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/debversion.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/deb/debversion.cc b/apt-pkg/deb/debversion.cc index d4be0f07e..e6132bea8 100644 --- a/apt-pkg/deb/debversion.cc +++ b/apt-pkg/deb/debversion.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debversion.cc,v 1.6 2003/01/27 00:05:59 jgg Exp $ +// $Id: debversion.cc,v 1.7 2003/07/18 14:13:59 mdz Exp $ /* ###################################################################### Debian Version - Versioning system for Debian @@ -65,8 +65,8 @@ int debVersioningSystem::CmpFragment(const char *A,const char *AEnd, { int first_diff = 0; - while ((lhs != AEnd && !isdigit(*lhs)) || - (rhs != BEnd && !isdigit(*rhs)) ) + while (lhs != AEnd && rhs != BEnd && + (!isdigit(*lhs) || !isdigit(*rhs))) { int vc = order(*lhs); int rc = order(*rhs); |