Merge pull request #90 from zhengshuxin/master

fixed vc warning about the utf-8 format with no BOM header.
This commit is contained in:
郑树新 2017-08-18 23:12:01 +08:00 committed by GitHub
commit 8e951b957d

View File

@ -238,7 +238,7 @@ size_t icmp_pkt_payload(const ICMP_PKT *pkt, char *buf, size_t size)
if (dlen == 0 || size == 0)
return 0;
/* 如果检测 code 值是私有值,则仅取除 git 外的数据 */
/* 如果检测 code 值是私有值,则仅取除 git 外的数据 */
if (pkt->hdr.code == ICMP_CODE_EXTRA) {
if (dlen <= sizeof(pkt->body.gid))
return 0;