From 6b26ae96ffa3624b41c0decd1987818cb7cbae57 Mon Sep 17 00:00:00 2001 From: Dave Dykstra Date: Wed, 14 Jun 2023 17:00:49 -0500 Subject: [PATCH] fix Sonar warnings --- src/pacparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pacparse.c b/src/pacparse.c index c57be44c..8b8456c1 100644 --- a/src/pacparse.c +++ b/src/pacparse.c @@ -285,8 +285,8 @@ int main(int argc, char* argv[]) } script = realloc(script, script_size); if (script == NULL) { - fprintf(stderr, "%s: Failed to realloc %d bytes memory for the script %s\n", - progname, script_size); + fprintf(stderr, "%s: Failed to realloc %d bytes of memory for the script %s\n", + progname, (int)script_size, script); free(old); return 1; }