summaryrefslogtreecommitdiff
path: root/src/tsg_send_log.cpp
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2023-02-15 12:13:26 +0800
committer彭宣正 <[email protected]>2023-02-15 12:13:26 +0800
commit485ae03da11002847da139fd7c11dd3af1dfbf4a (patch)
tree6e7343aa0f2ab847ff9d31dd3f88cf57ce4163c9 /src/tsg_send_log.cpp
parentce5ab5a3ba5a4664dd533e5dd7c49f0e112ddd0e (diff)
🐞 fix(TSG-13773): 修改TLD_array_append
Diffstat (limited to 'src/tsg_send_log.cpp')
-rw-r--r--src/tsg_send_log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp
index fe48d0c..56b0f83 100644
--- a/src/tsg_send_log.cpp
+++ b/src/tsg_send_log.cpp
@@ -1146,7 +1146,7 @@ int TLD_array_append(struct TLD_handle_t *handle, char *key, void **array, int a
case TLD_TYPE_STRING:
for(i=0; i<array_num; i++)
{
- Value str_value(StringRef((char *)(array[i]), strlen((char *)array[i])));
+ Value str_value((const char *)(array[i]), handle->document->GetAllocator());
obj_array.PushBack(str_value, handle->document->GetAllocator());
}
break;