summaryrefslogtreecommitdiff
path: root/libusb/os/windows_nt_common.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2017-01-12 13:55:55 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2017-01-12 15:26:21 -0800
commite37962295294ab8f97cb67171f6862f4d07cbfdd (patch)
tree30c50b8ca1604326e8afbbda29050a50e4c976d2 /libusb/os/windows_nt_common.c
parentcf1db52fbd519ba790ba734fd3d56ac6b497ec39 (diff)
downloadlibusb-e37962295294ab8f97cb67171f6862f4d07cbfdd.tar.gz
Windows: Provide C99 compliant implementations of (v)snprintf()
The Microsoft implementations of _snprintf() and vsnprintf() do not guarantee that the output buffer is NULL-terminated, and they do not return the number of bytes that *would* have been written if truncation were to occur. This commit adds implementations that do just that. Note that VS2015 and above provide C99 compliant versions of these functions, so those will be used when available. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/windows_nt_common.c')
0 files changed, 0 insertions, 0 deletions