artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1fc8d4
)
inverted logic
author
deraadt
<deraadt@openbsd.org>
Thu, 5 Dec 1996 08:13:08 +0000
(08:13 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 5 Dec 1996 08:13:08 +0000
(08:13 +0000)
usr.sbin/lpr/lpd/recvjob.c
patch
|
blob
|
history
diff --git
a/usr.sbin/lpr/lpd/recvjob.c
b/usr.sbin/lpr/lpd/recvjob.c
index
9af9e8b
..
c8e70f5
100644
(file)
--- a/
usr.sbin/lpr/lpd/recvjob.c
+++ b/
usr.sbin/lpr/lpd/recvjob.c
@@
-151,7
+151,7
@@
readjob()
return(nfiles);
}
} while (*cp++ != '\n' && (cp - line + 1) < sizeof line);
- if (cp - line + 1
<
sizeof line)
+ if (cp - line + 1
>=
sizeof line)
frecverr("readjob overflow");
*--cp = '\0';
cp = line;