diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2021-10-27 13:30:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-27 15:21:46 (GMT) |
commit | 6015a898d463fc321187ae346155654d55393a4c (patch) | |
tree | 9413fdd221c42da73a35f6cf6c4945b67b13a18c /SharedForward.h.in | |
parent | 58f046ba26d67c6e1ceda2a20977e316f1a942ad (diff) | |
download | CMake-6015a898d463fc321187ae346155654d55393a4c.zip CMake-6015a898d463fc321187ae346155654d55393a4c.tar.gz CMake-6015a898d463fc321187ae346155654d55393a4c.tar.bz2 |
KWSys 2021-10-27 (e19a5668)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit e19a5668f01bb9d96440ce96e777749d6e92562d (e19a5668f01bb9d96440ce96e777749d6e92562d).
Upstream Shortlog
-----------------
Mathieu Westphal (1):
e28d7282 DynamicLoader: Add RTLD_GLOBAL as a supported flag on linux
Sean McBride (8):
704a63d4 Replace sprintf with snprintf
f9f6d67b Replace non-standard _snprintf with standard snprintf
f771c009 Fix -Wunused-macros warning by defining under same conditions as usage
f3d4b12b Fix Wmissing-prototypes warnings by making functions static
6f4a1826 Fix Wmissing-variable-declarations by declaring variable in a header
31d25023 Fix all Wold-style-cast warnings
0f44b620 Fix Wreserved-id-macro warning by removing double underscore
44718539 Fix for extraneous semi-colon warning
Diffstat (limited to 'SharedForward.h.in')
-rw-r--r-- | SharedForward.h.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SharedForward.h.in b/SharedForward.h.in index 091334b..d6ae75c 100644 --- a/SharedForward.h.in +++ b/SharedForward.h.in @@ -457,9 +457,9 @@ static void kwsys_shared_forward_strerror(char* message) message, KWSYS_SHARED_FORWARD_MAXPATH, 0); if (length < 1 || length > KWSYS_SHARED_FORWARD_MAXPATH) { /* FormatMessage failed. Use a default message. */ - _snprintf(message, KWSYS_SHARED_FORWARD_MAXPATH, - "Error 0x%X (FormatMessage failed with error 0x%X)", original, - GetLastError()); + snprintf(message, KWSYS_SHARED_FORWARD_MAXPATH, + "Error 0x%lX (FormatMessage failed with error 0x%lX)", original, + GetLastError()); } # else /* Implementation for UNIX. */ |