mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
This commit is contained in:
@ -202,7 +202,7 @@ static size_t pull_ascii_base_talloc(TALLOC_CTX *ctx,
|
||||
/* Have we got space to append the '\0' ? */
|
||||
if (size <= dest_len) {
|
||||
/* No, realloc. */
|
||||
dest = TALLOC_REALLOC_ARRAY(ctx, dest, char,
|
||||
dest = talloc_realloc(ctx, dest, char,
|
||||
dest_len+1);
|
||||
if (!dest) {
|
||||
/* talloc fail. */
|
||||
@ -449,7 +449,7 @@ static size_t pull_ucs2_base_talloc(TALLOC_CTX *ctx,
|
||||
/* Have we got space to append the '\0' ? */
|
||||
if (size <= dest_len) {
|
||||
/* No, realloc. */
|
||||
dest = TALLOC_REALLOC_ARRAY(ctx, dest, char,
|
||||
dest = talloc_realloc(ctx, dest, char,
|
||||
dest_len+1);
|
||||
if (!dest) {
|
||||
/* talloc fail. */
|
||||
|
Reference in New Issue
Block a user