From a004e91c800026679ba71e985dde2bf4d11fe40d Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 9 Oct 2018 08:53:39 +0200 Subject: Sanitize error message in "throw" --- ell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ell.c b/ell.c index 94b5619..c386860 100644 --- a/ell.c +++ b/ell.c @@ -1191,7 +1191,7 @@ ell_defn (ell_fn_throw) { struct ell_v *message = args; if (!message || message->type != ELL_STRING) return ell_error (ell, "first argument must be string"); - return ell_error (ell, message->string); + return ell_error (ell, "%s", message->string); } ell_defn (ell_fn_plus) { -- cgit v1.2.3-70-g09d2