len++;
}
+ }
#ifdef LDAP_DEBUG
- } else {
+ else {
assert( type == LDIF_PUT_COMMENT );
-#endif
}
+#endif
switch( type ) {
case LDIF_PUT_NOVALUE:
char **bufp, /* ptr to malloced output buffer */
int *buflenp ) /* ptr to length of *bufp */
{
- char linebuf[BUFSIZ], *line;
+ char linebuf[BUFSIZ], *line, *nbufp;
ber_len_t lcur = 0, len, linesize;
int last_ch = '\n', found_entry = 0, stop;
}
if ( *buflenp - lcur <= len ) {
- char *nbufp = ber_memrealloc( *bufp, *buflenp += len + BUFSIZ );
+ *buflenp += len + BUFSIZ;
+ nbufp = ber_memrealloc( *bufp, *buflenp );
if( nbufp == NULL ) {
return 0;
}