use a larger buffer

This commit is contained in:
Vincent Wei
2019-07-02 14:30:16 +08:00
parent d2701bac10
commit 46ed039e84

View File

@@ -2012,7 +2012,7 @@ LRESULT DesktopWinProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
if (wParam == SCANCODE_PRINTSCREEN && message == MSG_KEYDOWN) {
#ifdef _MGMISC_SAVESCREEN
static int n = 1;
char buffer[20];
char buffer[64]; // VM: 20 is too small for file name
sprintf (buffer, "%p-%d.bmp", (lParam & KS_CTRL)?
(HWND)active_mainwnd: