Fix incorrect calls to *scanf_s functions.

The documentation is quite unclear but it seems that all buffer sizes should be given as characters count rather bytes count.

Note that although the calls were incorrect, there was probably no real effect for users.
Testing