]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/util-int.c
Fix attribute description checks
[openldap] / libraries / libldap / util-int.c
index 00faaca7d511a2b327447b25a005d6356c27963d..15d92b685ecf063eb89b02ccca8e4c4f2647891d 100644 (file)
@@ -92,12 +92,10 @@ char *ldap_pvt_ctime( const time_t *tp, char *buf )
 #endif 
 }
 
-#define BUFSTART 1024
-#define BUFMAX (32*1024)
+#define BUFSTART (1024-32)
+#define BUFMAX (32*1024-32)
 
-#if defined( NEED_SAFE_REALLOC )
 static char *safe_realloc( char **buf, int len );
-#endif
 
 #if !defined(HAVE_GETHOSTBYNAME_R) && defined(LDAP_R_COMPILE)
 static int copy_hostent( struct hostent *res, char **buf, struct hostent * src );