From 06a18132b08d04eedcd58bc5935d2583e68fd827 Mon Sep 17 00:00:00 2001 From: batrick Date: Mon, 2 Feb 2009 07:58:10 +0000 Subject: [PATCH] Removed another instance of the 'arg' table. --- nselib/tab.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/tab.lua b/nselib/tab.lua index 1aa86546a..d65f826c1 100644 --- a/nselib/tab.lua +++ b/nselib/tab.lua @@ -67,8 +67,8 @@ end -- @param t The table. -- @param ... The elements to add to the row. function addrow(t, ...) - for i=1, arg['n'] do - add( t, i, tostring(arg[i]) ) + for i=1, select("#", ...) do + add( t, i, tostring( ( select(i, ...)) ) ) end nextrow( t ) end