diff options
-rw-r--r-- | i386/i386at/lpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c index 5c16b153..edeef9fd 100644 --- a/i386/i386at/lpr.c +++ b/i386/i386at/lpr.c @@ -70,7 +70,7 @@ struct bus_ctlr *dev; int unit = dev->unit; int ret; - if ((unit < 0) || (unit > NLPR)) { + if ((unit < 0) || (unit >= NLPR)) { printf("com %d out of range\n", unit); return(0); } |