From 79b05108ec0167314ad85835e734dc29aeeb1058 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 4 Oct 2024 15:09:35 +0200 Subject: [PATCH] lib: Use talloc_realloc instead of talloc_realloc_size Maybe Coverity understands that talloc_realloc re-allocates the input buf. It does not understand that talloc_realloc_size does it. Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- lib/util/util_paths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/util_paths.c b/lib/util/util_paths.c index b35cc7f5863..1685c3c3cbf 100644 --- a/lib/util/util_paths.c +++ b/lib/util/util_paths.c @@ -95,7 +95,7 @@ static char *get_user_home_dir(TALLOC_CTX *mem_ctx) goto done; } len = newlen; - tmp = talloc_realloc_size(mem_ctx, buf, len); + tmp = talloc_realloc(mem_ctx, buf, char, len); if (tmp == NULL) { goto done; }