修复了sscanf_s引发的段错误,修改为sscanf函数
This commit is contained in:
parent
d693b09851
commit
e69d4ae1be
|
@ -8,7 +8,7 @@ int ReadInput(char *inputString)
|
||||||
|
|
||||||
char src[20];
|
char src[20];
|
||||||
int num;
|
int num;
|
||||||
sscanf_s(inputString, "%[a-z] %d", src, &num);
|
sscanf(inputString, "%[a-z] %d", src, &num);
|
||||||
if (0 == strcmp("clock", src))
|
if (0 == strcmp("clock", src))
|
||||||
{
|
{
|
||||||
return IO_CLOCK;
|
return IO_CLOCK;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user