From 47a2dc405554a71f6c19dfbdb490dc621f31b39c Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 21 Aug 2022 20:25:58 -0700 Subject: [PATCH] Fix string initialization issue in pdcdisp.c (WinGUI variant) --- src/3rdparty/win32_src/pdcurses/wingui/pdcdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdparty/win32_src/pdcurses/wingui/pdcdisp.c b/src/3rdparty/win32_src/pdcurses/wingui/pdcdisp.c index ad818cfff..04acc26aa 100644 --- a/src/3rdparty/win32_src/pdcurses/wingui/pdcdisp.c +++ b/src/3rdparty/win32_src/pdcurses/wingui/pdcdisp.c @@ -226,8 +226,8 @@ static LONG scale_font_for_current_dpi( LONG size) } int PDC_font_size = -1; -TCHAR PDC_font_name[128]; -TCHAR PDC_preferred_fontface[128]; /* can be set by application */ +TCHAR PDC_font_name[256] = _T("\0"); +TCHAR PDC_preferred_fontface[256] = _T("\0"); /* can be set by application */ static TCHAR* PDC_default_font_name = _T("Courier New"); /* The calling application can override the default fontface with