inverted logic
authorderaadt <deraadt@openbsd.org>
Thu, 5 Dec 1996 08:13:08 +0000 (08:13 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 5 Dec 1996 08:13:08 +0000 (08:13 +0000)
usr.sbin/lpr/lpd/recvjob.c

index 9af9e8b..c8e70f5 100644 (file)
@@ -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;