1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-27 02:02:26 +00:00
putty-source/cmake
Simon Tatham e7acb9f696 GetDlgItemTextW_alloc: use the right memchr.
When retrieving Unicode text from an edit box in the GUI configurer,
we were using plain memchr() to look for a terminating NUL. But of
course you have to use wmemchr() to look for a UTF-16 NUL, or else
memchr() will generate a false positive on the UTF-16 version of (at
least) any ASCII character!

(I also have to provide a fallback implementation of wmemchr for the
w32old builds, which don't have it in the libc they build against.
It's as simple as possible, and we use the libc version where
possible.)
2025-01-13 21:12:40 +00:00
..
platforms GetDlgItemTextW_alloc: use the right memchr. 2025-01-13 21:12:40 +00:00
cmake.h.in GetDlgItemTextW_alloc: use the right memchr. 2025-01-13 21:12:40 +00:00
gitcommit.cmake Add some missing #includes. 2022-09-03 11:59:12 +01:00
gtk.cmake Fix build failure on Debian bullseye from last commit. 2024-09-08 19:05:45 +01:00
licence.cmake Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
setup.cmake Side-channel tester: align memory allocations. 2024-04-01 13:10:49 +01:00
toolchain-mingw.cmake Reinstate __USE_MINGW_ANSI_STDIO for MinGW builds. 2022-08-29 17:22:28 +01:00
toolchain-winegcc.cmake Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
winegcc Fix breakage in winegcc build script. 2023-08-19 08:58:36 +01:00