]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldif.c
ITS#7859 fix to read 4096-character lines
[openldap] / libraries / libldap / ldif.c
index dbdfc5c47a7a2d9c5be7e62fbb4fec032cfddcd7..c9cd59c082ce8afaa9c54626d45604a7c206dc78 100644 (file)
@@ -818,7 +818,7 @@ ldif_read_record(
        char        **bufp,     /* ptr to malloced output buffer           */
        int         *buflenp )  /* ptr to length of *bufp                  */
 {
-       char        line[LDIF_MAXLINE], *nbufp;
+       char        line[LDIF_MAXLINE+2], *nbufp;
        ber_len_t   lcur = 0, len;
        int         last_ch = '\n', found_entry = 0, stop, top_comment = 0;