[channels,audin] fix string to int conversion

use strtoul for unsigned values
This commit is contained in:
akallabeth 2024-10-04 12:02:15 +02:00
parent 6c8c67b385
commit f4cac29f3c
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -941,7 +941,7 @@ BOOL audin_process_addin_args(AUDIN_PLUGIN* audin, const ADDIN_ARGV* args)
}
CommandLineSwitchCase(arg, "rate")
{
long val = strtol(arg->Value, NULL, 0);
unsigned long val = strtoul(arg->Value, NULL, 0);
if ((errno != 0) || (val == 0) || (val > UINT32_MAX))
return FALSE;