tag: fix bad len retrieval

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-12 15:04:11 +01:00
parent 1c50a5375e
commit 44fc8fa51c
1 changed files with 2 additions and 2 deletions

4
tag.c
View File

@ -262,13 +262,13 @@ luaA_tag_new(lua_State *L)
luaA_checktable(L, 2);
if(!(name = luaA_getopt_string(L, 2, "name", NULL)))
if(!(name = luaA_getopt_lstring(L, 2, "name", NULL, &len)))
luaL_error(L, "object tag must have a name");
mwfact = luaA_getopt_number(L, 2, "mwfact", 0.5);
ncol = luaA_getopt_number(L, 2, "ncol", 1);
nmaster = luaA_getopt_number(L, 2, "nmaster", 1);
lay = luaA_getopt_lstring(L, 2, "layout", "tile", &len);
lay = luaA_getopt_string(L, 2, "layout", "tile");
layout = name_func_lookup(lay, LayoutList);