[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
oops
Hi,
sorry, this is the right one:
----snip---
diff -Naur ldap/servers/slurpd/re.c newldap/servers/slurpd/re.c
--- ldap/servers/slurpd/re.c Tue Aug 18 20:28:54 1998
+++ newldap/servers/slurpd/re.c Wed Sep 2 10:25:31 1998
@@ -186,6 +186,7 @@
case T_DN:
re->re_dn = ch_malloc( len + 1 );
memcpy( re->re_dn, value, len );
+ re->re_dn[len]='\0';
state |= GOT_DN;
break;
default:
@@ -227,6 +228,7 @@
if ( value != NULL ) {
re->re_mods[ nml ].mi_val = ch_malloc( len + 1 );
memcpy( re->re_mods[ nml ].mi_val, value, len );
+ (re->re_mods[ nml ]).mi_val[len] = '\0';
re->re_mods[ nml ].mi_len = len;
} else {
re->re_mods[ nml ].mi_val = NULL;
----snip----
vasquez.
SDG