Commit a29b6cd5 authored by Konstantin Andreev's avatar Konstantin Andreev Committed by Quanah Gibson-Mount
Browse files

ITS#9578 ldif: terminate buf after truncating \r

parent 4409febd
......@@ -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';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment