1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00

r25000: Fix some more C++ compatibility warnings.

This commit is contained in:
Jelmer Vernooij
2007-09-07 15:08:14 +00:00
committed by Gerald (Jerry) Carter
parent 0a3b53fd2c
commit 08bb1ef643
72 changed files with 222 additions and 213 deletions

View File

@@ -600,7 +600,7 @@ BOOL asn1_read_LDAPString(struct asn1_data *data, TALLOC_CTX *mem_ctx, char **s)
data->has_error = True;
return False;
}
*s = talloc_size(mem_ctx, len+1);
*s = talloc_array(mem_ctx, char, len+1);
if (! *s) {
data->has_error = True;
return False;