diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-07-14 17:41:09 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:21:27 +0100 |
commit | c220db01281564bf5b50575ee7e24b38e45f5050 (patch) | |
tree | 5e66aa935ec029ca2bac6fa282f4c18710fc2d0d /src/Common/Tcdefs.h | |
parent | c01f392a7ba1d5cdd4aa182eeb273cf41717d94f (diff) | |
download | VeraCrypt-c220db01281564bf5b50575ee7e24b38e45f5050.tar.gz VeraCrypt-c220db01281564bf5b50575ee7e24b38e45f5050.zip |
Static Code Analysis : Generalize the use of Safe String functions. Add some NULL pointer checks. Avoid false-positive detection in AppendMenu (MF_SEPARATOR) calls by setting the last parameter to "" instead of NULL.
Diffstat (limited to 'src/Common/Tcdefs.h')
-rw-r--r-- | src/Common/Tcdefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Tcdefs.h b/src/Common/Tcdefs.h index 0bf41d79..423eed27 100644 --- a/src/Common/Tcdefs.h +++ b/src/Common/Tcdefs.h | |||
@@ -197,7 +197,7 @@ typedef int BOOL; | |||
197 | # ifdef DEVICE_DRIVER | 197 | # ifdef DEVICE_DRIVER |
198 | # define trace_msg Dump | 198 | # define trace_msg Dump |
199 | # elif defined (_WIN32) | 199 | # elif defined (_WIN32) |
200 | # define trace_msg(...) do { char msg[2048]; _snprintf (msg, sizeof (msg), __VA_ARGS__); OutputDebugString (msg); } while (0) | 200 | # define trace_msg(...) do { char msg[2048]; StringCbPrintfA (msg, sizeof (msg), __VA_ARGS__); OutputDebugString (msg); } while (0) |
201 | # endif | 201 | # endif |
202 | # define trace_point trace_msg (__FUNCTION__ ":" TC_TO_STRING(__LINE__) "\n") | 202 | # define trace_point trace_msg (__FUNCTION__ ":" TC_TO_STRING(__LINE__) "\n") |
203 | # else | 203 | # else |