更高MAAT_SET_SCAN_DISTRICT选项的参数要求,不再要求‘\0’结束。

This commit is contained in:
zhengchao
2016-09-18 12:44:00 +08:00
parent f646921a97
commit bdca633bbd
6 changed files with 23 additions and 4 deletions

View File

@@ -1491,7 +1491,7 @@ int Maat_set_scan_status(Maat_feather_t feather,scan_status_t* mid,enum MAAT_SCA
{
return -1;
}
map_ret=map_str2int(_feather->scanner->district_map,(const char*)value,&(_mid->district_id));
map_ret=map_unNullstr2int(_feather->scanner->district_map,(const char*)value,size,&(_mid->district_id));
if(map_ret<0)
{
//May be the district is not effected yet.