Commit 76a5ac21 authored by Zsolt Parragi's avatar Zsolt Parragi Committed by Brad King

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.
parent 6f23321d
Pipeline #129945 passed with stage
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment