diff options
author | Stig Venaas <venaas@php.net> | 2000-06-13 19:50:05 +0000 |
---|---|---|
committer | Stig Venaas <venaas@php.net> | 2000-06-13 19:50:05 +0000 |
commit | a2bdc522f5d68225a2ac251dc0c51b0da938ec68 (patch) | |
tree | 9918cebf2bf59fe0b1152c55931bb58609e3fa59 | |
parent | aa5c0ffcbfc272e5fc6cf79cba860c3bdbbc3d93 (diff) | |
download | php-git-a2bdc522f5d68225a2ac251dc0c51b0da938ec68.tar.gz |
Also need to 0-terminate when adding/modifying an array of values.
-rw-r--r-- | ext/ldap/ldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 3aa8cf5273..3f3ee908f3 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -1157,6 +1157,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper) zend_hash_index_find((*value)->value.ht,j, (void **) &ivalue); convert_to_string_ex(ivalue); ldap_mods[i]->mod_values[j] = (*ivalue)->value.str.val; + ldap_mods[i]->mod_values[j][(*value)->value.str.len] = '\0'; } } ldap_mods[i]->mod_values[num_values] = NULL; |