From: Howard Chu Date: Thu, 12 May 2005 02:56:11 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_AC_BP~662 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54adc170e577adc9bd90c445b6293a6f0ff04036;p=openldap Fix prev commit --- diff --git a/libraries/liblutil/fetch.c b/libraries/liblutil/fetch.c index 5ed0ad9cb0..904966619d 100644 --- a/libraries/liblutil/fetch.c +++ b/libraries/liblutil/fetch.c @@ -56,10 +56,8 @@ ldif_open_url( } /* we don't check for LDAP_DIRSEP since URLs should contain '/' */ - if( *p != '/' ) { - /* skip over false root */ - p++; - } + /* skip over false root */ + p++; p = ber_strdup( p ); ldap_pvt_hex_unescape( p ); diff --git a/libraries/liblutil/ldif.c b/libraries/liblutil/ldif.c index c4f2618441..01ac9dbf5b 100644 --- a/libraries/liblutil/ldif.c +++ b/libraries/liblutil/ldif.c @@ -866,6 +866,8 @@ ldif_read_record( lnew->fp = lfp->fp; lfp->prev = lnew; lfp->fp = fp2; + line[len] = '\n'; + len++; continue; } else { /* We failed to open the file, this should