diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-09 08:53:39 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-09 08:53:39 +0200 |
commit | a004e91c800026679ba71e985dde2bf4d11fe40d (patch) | |
tree | 575b05904c65aaa2fb8cc4afe6dfe99d02c0c194 | |
parent | f452191e62c1142c7ffdf3176f98a67ee764e12a (diff) | |
download | ell-a004e91c800026679ba71e985dde2bf4d11fe40d.tar.gz ell-a004e91c800026679ba71e985dde2bf4d11fe40d.tar.xz ell-a004e91c800026679ba71e985dde2bf4d11fe40d.zip |
Sanitize error message in "throw"
-rw-r--r-- | ell.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |