ITS#601: fix fetch bugs

This commit is contained in:
Kurt Zeilenga 2000-06-21 00:40:10 +00:00
parent d19419392c
commit d4c721ffa3

View file

@ -59,7 +59,7 @@ ldif_fetch_url(
p = ber_strdup( p );
ldap_pvt_hex_unescape( p );
url = fopen( p, "r" );
url = fopen( p, "rb" );
} else {
return -1;
@ -79,7 +79,7 @@ ldif_fetch_url(
fclose( url );
return -1;
}
newp = p;
p = newp;
SAFEMEMCPY( &p[total], buffer, bytes );
total += bytes;
}