From 79bdef2734a52ba2d8ff8c2911f9a374daee80bb Mon Sep 17 00:00:00 2001 From: MCJ Vasseur <14887731+mvr320@users.noreply.github.com> Date: Mon, 24 Jan 2022 15:26:12 +0100 Subject: [PATCH] Remove all formatting from string --- lib/lib.error.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/lib.error.c b/lib/lib.error.c index 6ecee19198a..c5595a54e5a 100644 --- a/lib/lib.error.c +++ b/lib/lib.error.c @@ -112,10 +112,21 @@ void vlogmsg(int msglevel, const char *mesg, va_list ap) bufferlen = strlen(timestring)+strlen(progname_escaped)+strlen(mesg)+20; buffer = (char *)malloc(bufferlen); if ( buffer==NULL ) abort(); + progname_unformatted = (char *)malloc(1+strlen(progname_escaped)); + size_t str_tmp_pos, esc_tmp_pos; + char ctmp; + for(str_tmp_pos=0; str_tmp_pos