更高MAAT_SET_SCAN_DISTRICT选项的参数要求,不再要求‘\0’结束。
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user