Small safety fix

This commit is contained in:
Laci bá
2021-11-16 22:02:17 +01:00
parent 05f4596f49
commit 7853f9f922

View File

@@ -122,7 +122,7 @@ progsett_fill_iconsets(HWND hdlg)
FILE *fp = _wfopen(temp, L"r");
if (fp)
{
char line[512];
char line[512] = {0};
if (fgets(line, 511, fp))
{
mbstowcs(dispname, line, strlen(line) + 1);