aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-09 08:53:39 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-09 08:53:39 +0200
commita004e91c800026679ba71e985dde2bf4d11fe40d (patch)
tree575b05904c65aaa2fb8cc4afe6dfe99d02c0c194
parentf452191e62c1142c7ffdf3176f98a67ee764e12a (diff)
downloadell-a004e91c800026679ba71e985dde2bf4d11fe40d.tar.gz
ell-a004e91c800026679ba71e985dde2bf4d11fe40d.tar.xz
ell-a004e91c800026679ba71e985dde2bf4d11fe40d.zip
Sanitize error message in "throw"
-rw-r--r--ell.c2
1 files changed, 1 insertions, 1 deletions
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) {