From 44fc8fa51c423fdfde7557094ca4aa01015d43ec Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 12 Nov 2008 15:04:11 +0100 Subject: [PATCH] tag: fix bad len retrieval Signed-off-by: Julien Danjou --- tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tag.c b/tag.c index 9be51b8f..35904841 100644 --- a/tag.c +++ b/tag.c @@ -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);