summaryrefslogtreecommitdiff
path: root/CMake/fl_create_example.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-03-15 21:22:21 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-03-15 21:22:21 +0100
commit2e1730d2f0f131d792c9b0561672f5252a868785 (patch)
tree93feaa2dc3d980a8a09242f630b388bcc35142ee /CMake/fl_create_example.cmake
parent24aec69f27aedeead49ed629b7d434b8846826d3 (diff)
Fix potential buffer overflow on Windows when loading fonts (#1221)
This commit is bigger than necessary to fix the buffer allocation but it also prevents some unnecessary string copies: the font name is converted from UTF-16 to UTF-8 directly in the buffer used later. Code reformatted and clarified as well, some duplicated code was removed.
Diffstat (limited to 'CMake/fl_create_example.cmake')
0 files changed, 0 insertions, 0 deletions