diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-15 21:22:21 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-15 21:22:21 +0100 |
| commit | 2e1730d2f0f131d792c9b0561672f5252a868785 (patch) | |
| tree | 93feaa2dc3d980a8a09242f630b388bcc35142ee /examples | |
| parent | 24aec69f27aedeead49ed629b7d434b8846826d3 (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 'examples')
0 files changed, 0 insertions, 0 deletions
