I thought there was some reason why the non-standard versions were still used, but apparently not. After re-reading the Microsoft docs (snprintf, swprintf), I'm pretty sure we can safely switch to the standard functions on Windows too.
snprintf is supported since VS 2015 and the standard-compliant version of swprintf since at least VS 2010, which is definitely enough for our purposes.
I thought there was some reason why the non-standard versions were still used, but apparently not. After re-reading the Microsoft docs (
snprintf
,swprintf
), I'm pretty sure we can safely switch to the standard functions on Windows too.snprintf
is supported since VS 2015 and the standard-compliant version ofswprintf
since at least VS 2010, which is definitely enough for our purposes.