From 5972fb95f41dfc8f7d2a60f270a34aa911a8f12f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 5 Aug 2002 19:48:50 +0000 Subject: [PATCH] Fix LDIF LF / CRLF handling. Patch suggested by Matthew Backes --- clients/tools/ldapmodify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5