aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/format.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/format.lua b/util/format.lua
index efd92e3d..e93c9096 100644
--- a/util/format.lua
+++ b/util/format.lua
@@ -70,7 +70,8 @@ local function format(formatstring, ...)
-- No UTF-8 or control characters, assumed to be the common case.
return
elseif option == "s" and t ~= "string" then
- args[i] = tostring(arg);
+ arg = tostring(arg);
+ t = "string";
end
if option ~= "s" and option ~= "q" and option ~= "p" then