summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 08:13:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 08:13:09 +0000
commit9449452ce69f275db57b81bade2525121895293d (patch)
tree34f8db42edd2357580c57607bf1d3af2d0cba9d4 /usr.sbin/lpr
parentab14faef155f7dddf0b1d13ece77e15dd09a230d (diff)
inverted logic
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c
index 9af9e8bb89c..c8e70f578bd 100644
--- 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;