aboutsummaryrefslogtreecommitdiff
path: root/liberty.c
diff options
context:
space:
mode:
Diffstat (limited to 'liberty.c')
-rw-r--r--liberty.c3
1 files changed, 3 insertions, 0 deletions
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",