From 5920a1b5e19e529ab3a3972348a6d53bcd90acfc Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 2 Dec 2020 10:26:09 -0500 Subject: Give messages to unconditional assertion failures --- dstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dstring.c') diff --git a/dstring.c b/dstring.c index 475bf65..58e74fe 100644 --- a/dstring.c +++ b/dstring.c @@ -192,7 +192,7 @@ int dstrvcatf(char **str, const char *format, va_list args) { tail = *str + len; ret = vsnprintf(tail, tail_len + 1, format, copy); if (ret < 0 || (size_t)ret != tail_len) { - assert(false); + assert(!"Length of formatted string changed"); goto fail; } } -- cgit v1.2.3