[warnings] fix integer narrowing
This commit is contained in:
parent
62e556f4d0
commit
15d408d6fc
@ -930,8 +930,10 @@ static BOOL pf_config_copy_string_list(char*** dst, size_t* size, char** src, si
|
|||||||
|
|
||||||
*dst = NULL;
|
*dst = NULL;
|
||||||
*size = 0;
|
*size = 0;
|
||||||
if (srcSize == 0)
|
if (srcSize > INT32_MAX)
|
||||||
return TRUE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (srcSize != 0)
|
||||||
{
|
{
|
||||||
char* csv = CommandLineToCommaSeparatedValues(srcSize, src);
|
char* csv = CommandLineToCommaSeparatedValues(srcSize, src);
|
||||||
*dst = CommandLineParseCommaSeparatedValues(csv, size);
|
*dst = CommandLineParseCommaSeparatedValues(csv, size);
|
||||||
|
Loading…
Reference in New Issue
Block a user