diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:17:44 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:17:44 +0100 |
| commit | c1e2370509e9f78357c3a74aac3babcfd88343b4 (patch) | |
| tree | a73fe6e590a6dbdd8d595cb0622c6ae16666a3b5 /CommonCode.c | |
| parent | 6c91842feefcdd0684f7008c6e5402071541794e (diff) | |
| parent | ea93adeffbb191c502e9b27be4e7a4c8cdd332a5 (diff) | |
Update upstream source from tag 'upstream/6.0.26.1+repack'
Update to upstream version '6.0.26.1+repack'
with Debian dir 40bbe79cb2c498826b4c6fd8726fdfe00e8d0cc4
Diffstat (limited to 'CommonCode.c')
| -rw-r--r-- | CommonCode.c | 10 |
1 files changed, 6 insertions, 4 deletions
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;
|
