From: Adhemerval Zanella Date: Wed, 1 Nov 2023 12:56:09 +0000 (-0300) Subject: assert: Decorate error message buffer X-Git-Tag: glibc-2.39~302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3374ca793660b1321eb56adc5bd10ccbfa3b8622;p=thirdparty%2Fglibc.git assert: Decorate error message buffer Reviewed-by: DJ Delorie --- diff --git a/assert/assert.c b/assert/assert.c index b7c7a4a1ba3..bf0f4a69f58 100644 --- a/assert/assert.c +++ b/assert/assert.c @@ -24,6 +24,7 @@ #include #include #include +#include extern const char *__progname; @@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file, { buf->size = total; strcpy (buf->msg, str); + __set_vma_name (buf, total, " glibc: assert"); /* We have to free the old buffer since the application might catch the SIGABRT signal. */