From 2e3ebffcd3a3cc7f29509eaa3275edf6c4ca8559 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 11 Mar 2007 10:41:58 +0200 Subject: [PATCH] string_assert: First arg of elinks_internal is a format string. --- src/util/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/string.c b/src/util/string.c index 4a436ccff..6d70faa45 100644 --- a/src/util/string.c +++ b/src/util/string.c @@ -34,7 +34,7 @@ #define string_assert(f, l, x, o) \ if ((assert_failed = !(x))) { \ errfile = f, errline = l, \ - elinks_internal("[" o "] assertion " #x " failed!"); \ + elinks_internal("[%s] assertion %s failed!", o, #x); \ } #ifdef DEBUG_MEMLEAK