now the generated "data" file matches the old one

strlen -> str_len
This commit is contained in:
leitner
2004-02-05 00:08:49 +00:00
parent 723522bcaa
commit ee32353df2
13 changed files with 32 additions and 28 deletions

View File

@@ -57,7 +57,7 @@ static int normalize_dn(char* dest,const char* src,int len) {
}
static int unbase64(char* buf) {
unsigned int destlen;
unsigned long destlen;
char temp[8192];
long l=scan_base64(buf,temp,&destlen);
if (buf[l] && buf[l]!='\n') return 0;
@@ -200,8 +200,9 @@ struct ldaprec *first=0;
int ldif_parse(const char* filename) {
char buf[4096];
int fd=open_read(filename);
int fd;
buffer in;
if (str_equal(filename,"-")) fd=0; else fd=open_read(filename);
if (fd<0) return 1;
buffer_init(&in,read,fd,buf,sizeof buf);
dn=mduptab_adds(&attributes,"dn");