summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
index f3fac4cfb..e901db971 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
@@ -110,7 +110,7 @@ enumcbw(CONST LOGFONTW *lpelf,
if (!fn) return 1;
fn[0] = ' ';
dstlen = fl_utf8fromwc(fn+1, dstlen+1, (wchar_t*)lpelf->lfFaceName, lw); // convert the string
- fn[dstlen] = 0;
+ fn[dstlen + 1] = 0;
// skip if it is one of our built-in fonts
for (int i = 0; i < FL_FREE_FONT; i++) {
if (!strcmp(Fl::get_font_name((Fl_Font)i), fn+1)) {