From 54adc170e577adc9bd90c445b6293a6f0ff04036 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 May 2005 02:56:11 +0000 Subject: [PATCH] Fix prev commit --- libraries/liblutil/fetch.c | 6 ++---- libraries/liblutil/ldif.c | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5