mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
cmListFileLexer: Add missing include to avoid possible pointer truncation
The `cmsys/Enconding.h` include had a typo in its surrounding ifdef, possibly causing a missing function declaration (`cmsysEncoding_DupToWide`). As this is C code, this resulted in the code compiling, but with a truncated return value, possibly causing crashes.
This commit is contained in:
1 parent
6f23321d40
commit
76a5ac2100
2 files changed
+2
-2
No files matched your search
@@ -766,7 +766,7 @@ Modify cmListFileLexer.c:
|
||||
|
||||
/* IWYU pragma: no_forward_declare yyguts_t */
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#include "cmsys/Encoding.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Modify cmListFileLexer.c:
|
||||
|
||||
/* IWYU pragma: no_forward_declare yyguts_t */
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#include "cmsys/Encoding.h"
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user