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:
committed by
Gerald (Jerry) Carter
parent
0a3b53fd2c
commit
08bb1ef643
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user