Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/telnetd there is a macro for that, use it.



details:   https://anonhg.NetBSD.org/src/rev/6d3b7fe32ade
branches:  trunk
changeset: 772200:6d3b7fe32ade
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 23 16:56:54 2011 +0000

description:
there is a macro for that, use it.

diffstat:

 libexec/telnetd/state.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8e5a86caca94 -r 6d3b7fe32ade libexec/telnetd/state.c
--- a/libexec/telnetd/state.c   Fri Dec 23 16:48:16 2011 +0000
+++ b/libexec/telnetd/state.c   Fri Dec 23 16:56:54 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: state.c,v 1.27 2007/02/21 21:14:07 hubertf Exp $       */
+/*     $NetBSD: state.c,v 1.28 2011/12/23 16:56:54 christos Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)state.c    8.5 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: state.c,v 1.27 2007/02/21 21:14:07 hubertf Exp $");
+__RCSID("$NetBSD: state.c,v 1.28 2011/12/23 16:56:54 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1212,7 +1212,7 @@
                 * Process suboption buffer of slc's
                 */
                start_slc(1);
-               do_opt_slc(subpointer, subend - subpointer);
+               do_opt_slc(subpointer, SB_LEN());
                (void) end_slc(0);
                break;
        } else if (request == LM_MODE) {



Home | Main Index | Thread Index | Old Index