mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
ITS#9578 ldif: terminate buf after truncating \r
This commit is contained in:
parent
4409febdea
commit
a29b6cd5d6
1 changed files with 1 additions and 0 deletions
|
|
@ -829,6 +829,7 @@ ldif_read_record(
|
|||
/* Squash \r\n to \n */
|
||||
if ( len > 1 && line[len-2] == '\r' ) {
|
||||
len--;
|
||||
line[len] = '\0';
|
||||
line[len-1] = '\n';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue