diff options
author | dg <dg@FreeBSD.org> | 1995-08-07 08:40:49 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-08-07 08:40:49 +0000 |
commit | 3ed1e41c8e5a7ab085abf335f526b2b0a0a56772 (patch) | |
tree | 1e4f7ff0bb516e67c238c13c2f62ea7cd5dc8ae7 /sys/kern | |
parent | 20100f1812e9eb78758c4c9fb8c6fc6e1c08ab76 (diff) | |
download | FreeBSD-src-3ed1e41c8e5a7ab085abf335f526b2b0a0a56772.zip FreeBSD-src-3ed1e41c8e5a7ab085abf335f526b2b0a0a56772.tar.gz |
Woops, I committed the wrong version of the diff in the last rev.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_prf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index c817d0f..e808c4f 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 - * $Id: subr_prf.c,v 1.15 1995/08/06 22:00:17 davidg Exp $ + * $Id: subr_prf.c,v 1.16 1995/08/07 07:58:18 davidg Exp $ */ #include <sys/param.h> @@ -511,7 +511,7 @@ putchar(c, flags, tp) mbp->msg_magic = MSG_MAGIC; } mbp->msg_bufc[mbp->msg_bufx++] = c; - if (mbp->msg_bufx < 0 || mbp->msg_bufx >= MSG_BSIZE) + if (mbp->msg_bufx >= MSG_BSIZE) mbp->msg_bufx = 0; /* If the buffer is full, keep the most recent data. */ if (mbp->msg_bufr == mbp->msg_bufx) { |