Closes: #676796
---
 lib/dpkg/pkg-format.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpkg/pkg-format.c b/lib/dpkg/pkg-format.c
index 96185c9..338c206 100644
--- a/lib/dpkg/pkg-format.c
+++ b/lib/dpkg/pkg-format.c
@@ -86,7 +86,7 @@ parsefield(struct pkg_format_node *cur, const char *fmt, 
const char *fmtend)
                               *endptr);
                        return false;
                }
-               if (w < INT_MAX || w > INT_MAX || errno == ERANGE) {
+               if (w < INT_MIN || w > INT_MAX || errno == ERANGE) {
                        fprintf(stderr, _("field width is out of range\n"));
                        return false;
                }
-- 
1.7.10




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to