From 3e911b2a4c34ffbf4893216666bbe5ad73e5551a Mon Sep 17 00:00:00 2001 From: liuxueli Date: Thu, 2 Sep 2021 19:30:15 +0800 Subject: [PATCH] =?UTF-8?q?TSG-7626:=20IP=E5=BD=92=E5=B1=9E=E5=9C=B0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=AD=97=E6=AE=B5=E4=BB=85=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E4=B8=80=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_send_log.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index dd11c1b..0166e37 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -216,9 +216,9 @@ static int set_asn(struct TLD_handle_t *_handle, struct streaminfo *a_stream, ch if(asn_info!=NULL) { - len+=string_cat(buff, buff_len-len, asn_info->asn_id); + len+=string_cat(buff+len, buff_len-len, asn_info->asn_id); buff[len++]='('; - len+=string_cat(buff, buff_len-len, asn_info->organization); + len+=string_cat(buff+len, buff_len-len, asn_info->organization); buff[len++]=')'; TLD_append(_handle, field_name, (void *)buff, TLD_TYPE_STRING); } @@ -234,11 +234,11 @@ static int set_location(struct TLD_handle_t *_handle, struct streaminfo *a_strea if(location_info!=NULL) { - len+=string_cat(buff, buff_len-len, location_info->city_full); + len+=string_cat(buff+len, buff_len-len, location_info->city_full); buff[len++]=','; - len+=string_cat(buff, buff_len-len, location_info->province_full); + len+=string_cat(buff+len, buff_len-len, location_info->province_full); buff[len++]=','; - len+=string_cat(buff, buff_len-len, location_info->country_full); + len+=string_cat(buff+len, buff_len-len, location_info->country_full); buff[len++]=','; TLD_append(_handle, field_name, (void *)buff, TLD_TYPE_STRING);