From b0870d505560267efed5ba777d022a9f46631e8c Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 21 Apr 2021 01:36:10 +0200 Subject: [PATCH] Fixed a mistake in win/win_dialog.c. --- src/win/win_dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_dialog.c b/src/win/win_dialog.c index a5bfab825..6f37f46b0 100644 --- a/src/win/win_dialog.c +++ b/src/win/win_dialog.c @@ -222,7 +222,7 @@ file_dlg_mb(HWND hwnd, char *f, char *fn, char *title, int save) { WCHAR uf[512], ufn[512], title_buf[512]; - mbstoc16s(uf, f, strlen(fn) + 1); + mbstoc16s(uf, f, strlen(f) + 1); mbstoc16s(ufn, fn, strlen(fn) + 1); if (title) mbstoc16s(title_buf, title, sizeof title_buf);