From 28cc251dc3b61aedc956ca54f81599e34e5fde80 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 3 Feb 2011 23:17:31 +0000 Subject: [PATCH] From David Carne: col_set_str simply stores the pointer passed to it, and luaL_checkstring returns a temporary pointer. Changing col_set_str to col_add_str in Columns_newindex seems to fix the issue. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35795 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/wslua/wslua_pinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/wslua/wslua_pinfo.c b/epan/wslua/wslua_pinfo.c index 1e141a4415..51cd1bc5ca 100644 --- a/epan/wslua/wslua_pinfo.c +++ b/epan/wslua/wslua_pinfo.c @@ -502,7 +502,7 @@ WSLUA_METAMETHOD Columns__newindex(lua_State *L) { for(cn = colnames; cn->name; cn++) { if( g_str_equal(cn->name,colname) ) { - col_set_str(cols->cinfo, cn->id, text); + col_add_str(cols->cinfo, cn->id, text); return 0; } } -- 2.34.1