From 70e9868c8e4f4af6345a50d153f82803e6a09bbc Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 16 Jan 2022 21:02:09 +0100 Subject: [PATCH] Windows: fix buffer overrun caused by wrong use of wmemset --- src/Format/Tcformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 54276de7..06d2c31a 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -3746,7 +3746,7 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa SetWindowTextW (GetDlgItem (GetParent (hwndDlg), IDC_BOX_TITLE), finalMsg); - wmemset (finalMsg, 0, sizeof (finalMsg)); + memset (finalMsg, 0, sizeof (finalMsg)); try { StringCbPrintfW (finalMsg, sizeof(finalMsg),