TSG-12681: 匹配识别协议开关不区分大小写,修复TSGX渲染配置文件的配置选项与功能定义大小写不一致的问题
This commit is contained in:
@@ -721,7 +721,7 @@ static int tsg_proto_name2flag(char *proto_list, int *flag)
|
|||||||
|
|
||||||
for(i=0; i< PROTO_MAX; i++)
|
for(i=0; i< PROTO_MAX; i++)
|
||||||
{
|
{
|
||||||
if((memcmp(s, g_tsg_proto_name2id[i].name, e-s))==0)
|
if((strncasecmp(s, g_tsg_proto_name2id[i].name, e-s))==0)
|
||||||
{
|
{
|
||||||
*flag|=(1<<g_tsg_proto_name2id[i].type);
|
*flag|=(1<<g_tsg_proto_name2id[i].type);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user