fix invalid debug info

This commit is contained in:
yihaoDeng 2023-10-19 15:30:04 +08:00
parent 0188289308
commit 93cac3532e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ void* rpcOpen(const SRpcInit* pInit) {
} }
if (pInit->label) { if (pInit->label) {
int len = strlen(pInit->label) > sizeof(pRpc->label) ? sizeof(pRpc->label) : strlen(pInit->label); int len = strlen(pInit->label) > sizeof(pRpc->label) ? sizeof(pRpc->label) : strlen(pInit->label);
tstrncpy(pRpc->label, pInit->label, len); memcpy(pRpc->label, pInit->label, len);
} }
pRpc->compressSize = pInit->compressSize; pRpc->compressSize = pInit->compressSize;