]> git.ozlabs.org Git - ppp.git/blobdiff - chat/chat.c
chat: Fix loop condition to avoid possible 1-byte buffer overrun
[ppp.git] / chat / chat.c
index fa67fd24213e2e80d4611c438b52526831f36d11..336c0f4995f4ab3dadd1612673d251ec0d3507d5 100644 (file)
@@ -609,7 +609,7 @@ void terminate(int status)
        int c, rep_len;
 
        rep_len = strlen(report_buffer);
-       while (rep_len + 1 <= sizeof(report_buffer)) {
+       while (rep_len + 1 < sizeof(report_buffer)) {
            alarm(1);
            c = get_char();
            alarm(0);