If you're using C++ then don't use any of the functions from
cstdio
, there are far better ways of extracting data from formatted strings.
And if you really have to use any of them you're not providing enough parameters to the
sscanf_s
call. It'd be okay for sscanf but not the hoopy so called Microsoft secure version.
Have a look at the example on
Here[
^] - you'll see that the first call to
sscanf_s
has the size of the buffer the string will be written into after the string parameter.