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