1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-27 10:12:24 +00:00
putty-source/cmake/platforms
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
..
unix.cmake Stop trying to include X11 headers in non-GTK builds. 2022-09-19 20:21:01 +01:00
windows.cmake GetDlgItemTextW_alloc: use the right memchr. 2025-01-13 21:12:40 +00:00