Disable LDAP_MEMORY_DEBUG on NT (should not have been enabled by default).

Fix LDAP_MEMORY_DEBUG realloc size bug, thanks Alex.
This commit is contained in:
Kurt Zeilenga 1999-06-10 00:56:00 +00:00
parent 2c4a3c8442
commit f34c94e5d5
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#define DIRSEP "\\"
#if defined( _DEBUG ) && !defined( LDAP_DEBUG )
#define LDAP_MEMORY_DEBUG 1
/* #define LDAP_MEMORY_DEBUG 1 */
#define LDAP_DEBUG 1
#endif

View File

@ -194,7 +194,7 @@ ber_memrealloc( void* p, size_t s )
((char *)p - sizeof(struct ber_mem_hdr));
assert( mh->bm_junk == BER_MEM_JUNK );
p = realloc( mh, s );
p = realloc( mh, s + sizeof(struct ber_mem_hdr) );
if( p == NULL ) return NULL;