修复了sscanf_s引发的段错误,修改为sscanf函数

This commit is contained in:
jackfiled 2022-05-25 09:52:27 +08:00
parent d693b09851
commit e69d4ae1be

View File

@ -8,7 +8,7 @@ int ReadInput(char *inputString)
char src[20];
int num;
sscanf_s(inputString, "%[a-z] %d", src, &num);
sscanf(inputString, "%[a-z] %d", src, &num);
if (0 == strcmp("clock", src))
{
return IO_CLOCK;