From e52507b4ff11655ce6eb45983dbaf0f25fd13856 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Tue, 16 Apr 2019 20:51:45 +0200 Subject: [PATCH] ignores findings of flawfinder --- lib/webfuse/core/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/webfuse/core/string.c b/lib/webfuse/core/string.c index c5117eb..b5ead74 100644 --- a/lib/webfuse/core/string.c +++ b/lib/webfuse/core/string.c @@ -10,7 +10,7 @@ char * wf_create_string(char const * format, ...) va_list measure_args; va_start(measure_args, format); char buffer; - int needed = vsnprintf(&buffer, 1, format, measure_args); + int needed = vsnprintf(&buffer, 1, format, measure_args); /* Flawfinder: ignore */ va_end(measure_args); if (0 <= needed) @@ -20,7 +20,7 @@ char * wf_create_string(char const * format, ...) { va_list args; va_start(args, format); - int count = vsnprintf(result, needed + 1, format, args); + int count = vsnprintf(result, needed + 1, format, args); /* Flawfinder: ignore */ va_end(args); if ((count < 0) || (needed < count))