From 604a684910f304dbf5d9f9db764bc65762269065 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 27 Jun 2016 18:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8Cdemo=E6=B5=8B=E8=AF=95=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/map_str2int.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entry/map_str2int.cpp b/src/entry/map_str2int.cpp index 6e5c8e4..f8cf554 100644 --- a/src/entry/map_str2int.cpp +++ b/src/entry/map_str2int.cpp @@ -1,3 +1,4 @@ +#include #include void map_tmp_free(void* ptr) @@ -81,7 +82,7 @@ void duplicate_func(const uchar * key, uint size, void * data, void * user) int ret=0; char* string=(char*)calloc(sizeof(char),(size+1)); memcpy(string,key,size); - ret=map_register(target,key,value); + ret=map_register(target,string,value); assert(ret>0); } MESA_htable_handle map_duplicate(MESA_htable_handle origin_map)