diff options
Diffstat (limited to 'plugins/FileAsMessage/src/dialog.cpp')
-rw-r--r-- | plugins/FileAsMessage/src/dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/FileAsMessage/src/dialog.cpp b/plugins/FileAsMessage/src/dialog.cpp index 21aa2775ba..9cc63c3929 100644 --- a/plugins/FileAsMessage/src/dialog.cpp +++ b/plugins/FileAsMessage/src/dialog.cpp @@ -1191,7 +1191,7 @@ INT_PTR CALLBACK DialogProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam if(size != -1)
mir_snprintf(str, SIZEOF(str), Translate("Size: %d bytes"), size);
else
- mir_snprintf(str, SIZEOF(str), "%s", Translate("Can't get a file size"));
+ strncpy_s(str, Translate("Can't get a file size"), _TRUNCATE);
SetDlgItemText(hDlg, IDC_FILESIZE, str);
break;
|