summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
commitb7c74cd5b22618d544a3f4ae124985d4837e3a22 (patch)
tree468d9610a590685322ad2159a9bd2d9e2ba83f89 /plugins/FileAsMessage/src
parent7de513f180c429859e246d1033d745b394e1fc28 (diff)
new mir_snprintf templates without SIZEOF
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FileAsMessage/src')
-rw-r--r--plugins/FileAsMessage/src/dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FileAsMessage/src/dialog.cpp b/plugins/FileAsMessage/src/dialog.cpp
index ca8a746957..c958e08dcc 100644
--- a/plugins/FileAsMessage/src/dialog.cpp
+++ b/plugins/FileAsMessage/src/dialog.cpp
@@ -443,7 +443,7 @@ void FILEECHO::incomeRequest(char *param)
chunkCountx = atoi(p);
fileSize = atoi(param);
- mir_snprintf(buf, SIZEOF(buf), Translate("Size: %d bytes"), fileSize);
+ mir_snprintf(buf, Translate("Size: %d bytes"), fileSize);
SetDlgItemText(hDlg, IDC_FILENAME, filename);
SetDlgItemText(hDlg, IDC_FILESIZE, buf);
@@ -1167,7 +1167,7 @@ INT_PTR CALLBACK DialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
int size = RetrieveFileSize(str);
if (size != -1)
- mir_snprintf(str, SIZEOF(str), Translate("Size: %d bytes"), size);
+ mir_snprintf(str, Translate("Size: %d bytes"), size);
else
mir_strncpy(str, Translate("Can't get a file size"), SIZEOF(str));
SetDlgItemText(hDlg, IDC_FILESIZE, str);