aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2011-02-03 23:17:31 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2011-02-03 23:17:31 +0000
commit1048f71f5d383d62d1094e2e6aeedf73046a1442 (patch)
tree9b095228616e93aa91d0af9c08429a2c5b343884 /epan
parent0c9649929e9982c0e9b0e5676c68c9ca2b3f03cc (diff)
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. svn path=/trunk/; revision=35795
Diffstat (limited to 'epan')
-rw-r--r--epan/wslua/wslua_pinfo.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}