mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9578 ldif: terminate buf after truncating \r
This commit is contained in:
parent
3e45c71d29
commit
00529facbe
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