From ea93adeffbb191c502e9b27be4e7a4c8cdd332a5 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 20 Oct 2026 22:17:41 +0100 Subject: New upstream version 6.0.26.1+repack --- CommonCode.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'CommonCode.c') diff --git a/CommonCode.c b/CommonCode.c index 3559135..70ba8ee 100644 --- a/CommonCode.c +++ b/CommonCode.c @@ -4308,9 +4308,9 @@ VOID SendUIBeacon(int Port) if (hFile == 0) return; - Len = (int)fread(UIMessage, 1, 1024, hFile); - + Len = (int)fread(UIMessage, 1, 1023, hFile); fclose(hFile); + UIMessage[Len] = 0; } else @@ -4736,8 +4736,10 @@ INT_PTR CALLBACK ChildDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM { case IDC_FILE: - memset(&ofn, 0, sizeof (OPENFILENAME)); - ofn.lStructSize = sizeof (OPENFILENAME); + memset(&ofn, 0, sizeof (ofn)); + + + ofn.lStructSize = sizeof (ofn); ofn.hwndOwner = hDlg; ofn.lpstrFile = &FN[Port][0]; ofn.nMaxFile = 250; -- cgit v1.2.3