Minor change to allow us to work with hosts whose urgent pointer is off by one.
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Sun, 20 Apr 1986 07:36:44 +0000 (23:36 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Sun, 20 Apr 1986 07:36:44 +0000 (23:36 -0800)
SCCS-vsn: libexec/telnetd/telnetd.c 5.10

usr/src/libexec/telnetd/telnetd.c

index aaffff4..7ac9006 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)telnetd.c  5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)telnetd.c  5.10 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -534,7 +534,7 @@ telrcv()
                                        }
                                        *nfrontp++ = IAC;
                                        *nfrontp++ = DM;
                                        }
                                        *nfrontp++ = IAC;
                                        *nfrontp++ = DM;
-                                       neturg = nfrontp;
+                                       neturg = nfrontp-1; /* off by one XXX */
                                        break;
                                }
 
                                        break;
                                }