From 70f12a8a7dc23b7fe64aae9ef6cc4283b10192df Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 7 May 2015 08:33:15 +0200 Subject: Don't print out full path in assertions --- liberty.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liberty.c b/liberty.c index b3ea3e3..0f37a93 100644 --- a/liberty.c +++ b/liberty.c @@ -187,6 +187,9 @@ static void assertion_failure_handler (bool is_fatal, const char *file, int line, const char *function, const char *condition) { + const char *slash = strrchr (file, '/'); + if (slash) + file = slash + 1; if (is_fatal) { print_fatal ("assertion failed [%s:%d in function %s]: %s", -- cgit v1.2.3-70-g09d2