]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - misc.c
Use the proper snprintf function if compiling with VS2015.
authorSimon Tatham <anakin@pobox.com>
Sat, 19 Dec 2015 10:07:11 +0000 (10:07 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 22 Dec 2015 12:35:23 +0000 (12:35 +0000)
commit74e7629e68ecfa8f764879d5553a5801451e11bb
tree604175059a73ff62cd410a8b353bcae42ee66e13
parent7ca84b4d68cb7a58302030ed0432ad5deb4b025d
Use the proper snprintf function if compiling with VS2015.

Proper snprintf is finally supported as of the latest Visual Studio,
and has better semantics for my purposes than the old MS-specific
_snprintf. (Specifically, if its output doesn't fit the buffer, it
returns the full size it _would_ have wanted, so that you can then
immediately allocate that much space, and don't have to keep going
round a loop increasing the buffer size until you find the answer.)
misc.c