diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2017-01-12 13:55:55 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2017-01-12 15:26:21 -0800 |
commit | e37962295294ab8f97cb67171f6862f4d07cbfdd (patch) | |
tree | 30c50b8ca1604326e8afbbda29050a50e4c976d2 /libusb/os/windows_nt_common.c | |
parent | cf1db52fbd519ba790ba734fd3d56ac6b497ec39 (diff) | |
download | libusb-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