One more >= tweak.
authorWayne Davison <wayne@opencoder.net>
Sun, 21 Jun 2020 22:30:34 +0000 (15:30 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 21 Jun 2020 22:30:34 +0000 (15:30 -0700)
clientserver.c

index 6eb41beccbc67073a24308274e9f8bedb8c0b9b6..b790974c3d97d1615e6be90b558e3932e09e3594 100644 (file)
@@ -1229,7 +1229,7 @@ int start_daemon(int f_in, int f_out)
 
        if (strncmp(line, EARLY_INPUT_CMD, EARLY_INPUT_CMDLEN) == 0) {
                early_input_len = strtol(line + EARLY_INPUT_CMDLEN, NULL, 10);
-               if (early_input_len <= 0 || early_input_len >= BIGPATHBUFLEN) {
+               if (early_input_len <= 0 || early_input_len > BIGPATHBUFLEN) {
                        io_printf(f_out, "@ERROR: invalid early_input length\n");
                        return -1;
                }