From 06c8e120ad0ed68391323b39dfb7ba05a92b61bd Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 10 Jan 2012 13:49:32 +0000 Subject: [PATCH] fix signed/unsigned comparison. --- usr.bin/telnet/telnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/telnet/telnet.c b/usr.bin/telnet/telnet.c index 42e6087d47d2..bfc363e791b9 100644 --- a/usr.bin/telnet/telnet.c +++ b/usr.bin/telnet/telnet.c @@ -1,4 +1,4 @@ -/* $NetBSD: telnet.c,v 1.35 2012/01/09 16:08:55 christos Exp $ */ +/* $NetBSD: telnet.c,v 1.36 2012/01/10 13:49:32 christos Exp $ */ /* * Copyright (c) 1988, 1990, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)telnet.c 8.4 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: telnet.c,v 1.35 2012/01/09 16:08:55 christos Exp $"); +__RCSID("$NetBSD: telnet.c,v 1.36 2012/01/10 13:49:32 christos Exp $"); #endif #endif /* not lint */ @@ -1633,7 +1633,7 @@ env_opt_add(unsigned char *ep) vp = env_getvalue(ep); elen = 2 * (vp ? strlen((char *)vp) : 0) + 2 * strlen((char *)ep) + 6; - if ((opt_replyend - opt_replyp) < elen) + if ((unsigned int)(opt_replyend - opt_replyp) < elen) { unsigned char *p; len = opt_replyend - opt_reply + elen;