Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/telnet fix signed/unsigned comparison.
details: https://anonhg.NetBSD.org/src/rev/e9a77fe21046
branches: trunk
changeset: 772647:e9a77fe21046
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 10 13:49:32 2012 +0000
description:
fix signed/unsigned comparison.
diffstat:
usr.bin/telnet/telnet.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6a8408025572 -r e9a77fe21046 usr.bin/telnet/telnet.c
--- a/usr.bin/telnet/telnet.c Tue Jan 10 12:27:54 2012 +0000
+++ b/usr.bin/telnet/telnet.c Tue Jan 10 13:49:32 2012 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index