From 2db52ae951dc1c6ea854b198d16144af622d065b Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 13 Mar 2016 20:29:10 +0000 Subject: [PATCH] Force numeric values to string to avoid assertion in tab.lua. Related #266 --- nselib/ls.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/ls.lua b/nselib/ls.lua index f1d116dab..9d190ffd3 100644 --- a/nselib/ls.lua +++ b/nselib/ls.lua @@ -214,7 +214,7 @@ function add_file(output, file) local curvol = output.curvol local files = curvol["files"] for i, info in ipairs(file) do - tab.add(files, i, info) + tab.add(files, i, tostring(info)) end local size = get_size(file[curvol.hasperms and 4 or 1]) if size then