diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-11-27 01:28:33 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-11-27 01:28:33 +0100 |
commit | 7596a94fab65860ff8044508a947f0744b300772 (patch) | |
tree | 563232c4215528bc8573191f47bf3b21fc40c271 /i386/i386at | |
parent | bf40af4238307d86699156bdc86e77dcc980e018 (diff) |
Fix bound
* i386/i386at/lpr.c (lprprobe): Fix checking unit against NLPR.
Diffstat (limited to 'i386/i386at')
-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 5c16b15..edeef9f 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); } |