From: Kurt Zeilenga Date: Mon, 5 Aug 2002 19:48:50 +0000 (+0000) Subject: Fix LDIF LF / CRLF handling. X-Git-Tag: NO_SLAP_OP_BLOCKS~1285 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5972fb95f41dfc8f7d2a60f270a34aa911a8f12f;p=openldap Fix LDIF LF / CRLF handling. Patch suggested by Matthew Backes --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index ed73a57b29..6ef822190e 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -1238,7 +1238,7 @@ read_one_record( FILE *fp ) while ( fgets( line, sizeof(line), fp ) != NULL ) { int len = strlen( line ); - if( len < 2 || ( len == 3 && *line == '\r' )) { + if( len < 2 || ( len == 2 && *line == '\r' )) { if( buf == NULL ) { continue; } else {