1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00

Also need to 0-terminate when adding/modifying an array of values.

This commit is contained in:
Stig Venaas
2000-06-13 19:50:05 +00:00
parent aa5c0ffcbf
commit a2bdc522f5

View File

@@ -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;