]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/util-int.c
fix non-printable flag detection; improve dn test (passes all but last in http:/...
[openldap] / libraries / libldap / util-int.c
index 00faaca7d511a2b327447b25a005d6356c27963d..4bf3f6fa71e6833f56f0060737fed7dfdbbf8b0b 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT 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 );