summaryrefslogtreecommitdiff
path: root/plugins/Non-IM Contact/src/contactinfo.cpp
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/Non-IM Contact/src/contactinfo.cpp
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/Non-IM Contact/src/contactinfo.cpp')
-rw-r--r--plugins/Non-IM Contact/src/contactinfo.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Non-IM Contact/src/contactinfo.cpp b/plugins/Non-IM Contact/src/contactinfo.cpp
index af83f83cb5..ff3e1795e6 100644
--- a/plugins/Non-IM Contact/src/contactinfo.cpp
+++ b/plugins/Non-IM Contact/src/contactinfo.cpp
@@ -588,23 +588,23 @@ INT_PTR ImportContacts(WPARAM wParam, LPARAM lParam)
if (icon) {
char tmp[64];
if (icon == ID_STATUS_ONLINE)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: Online\r\n");
+ mir_snprintf(tmp, "Icon: Online\r\n");
else if (icon == ID_STATUS_AWAY)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: Away\r\n");
+ mir_snprintf(tmp, "Icon: Away\r\n");
else if (icon == ID_STATUS_NA)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: NA\r\n");
+ mir_snprintf(tmp, "Icon: NA\r\n");
else if (icon == ID_STATUS_DND)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: DND\r\n");
+ mir_snprintf(tmp, "Icon: DND\r\n");
else if (icon == ID_STATUS_OCCUPIED)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: Occupied\r\n");
+ mir_snprintf(tmp, "Icon: Occupied\r\n");
else if (icon == ID_STATUS_FREECHAT)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: Free For Chat\r\n");
+ mir_snprintf(tmp, "Icon: Free For Chat\r\n");
else if (icon == ID_STATUS_INVISIBLE)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: Invisible\r\n");
+ mir_snprintf(tmp, "Icon: Invisible\r\n");
else if (icon == ID_STATUS_ONTHEPHONE)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: On The Phone\r\n");
+ mir_snprintf(tmp, "Icon: On The Phone\r\n");
else if (icon == ID_STATUS_OUTTOLUNCH)
- mir_snprintf(tmp, SIZEOF(tmp), "Icon: Out To Lunch\r\n");
+ mir_snprintf(tmp, "Icon: Out To Lunch\r\n");
else {
free(msg);
continue;
@@ -620,7 +620,7 @@ INT_PTR ImportContacts(WPARAM wParam, LPARAM lParam)
if (minutes)
mir_strcpy(tmp2, "Minutes");
else mir_strcpy(tmp2, "Seconds");
- mir_snprintf(tmp, SIZEOF(tmp), "UseTimer: Yes\r\nTimer: %d %s", timer, tmp2);
+ mir_snprintf(tmp, "UseTimer: Yes\r\nTimer: %d %s", timer, tmp2);
char *msgtemp = (char*)realloc(msg, mir_strlen(msg) + mir_strlen(tmp) + 1);
if (msgtemp) {
msg = msgtemp;