From b7c74cd5b22618d544a3f4ae124985d4837e3a22 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 22:12:13 +0000 Subject: new mir_snprintf templates without SIZEOF git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/communication.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Omegle') diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp index a0e1d19c0c..4998a0b344 100644 --- a/protocols/Omegle/src/communication.cpp +++ b/protocols/Omegle/src/communication.cpp @@ -361,7 +361,7 @@ bool Omegle_client::start() std::string count = get_page( OMEGLE_REQUEST_COUNT ); if (!count.empty()) { char str[255]; - mir_snprintf(str, SIZEOF(str), Translate("Connected to server %s. There are %s users online now."), server_.c_str(), count.c_str()); + mir_snprintf(str, Translate("Connected to server %s. There are %s users online now."), server_.c_str(), count.c_str()); TCHAR *msg = mir_a2t(str); parent->UpdateChat(NULL, msg); @@ -369,7 +369,7 @@ bool Omegle_client::start() } } else { char str[255]; - mir_snprintf(str, SIZEOF(str), Translate("Connected to server %s."), server_.c_str()); + mir_snprintf(str, Translate("Connected to server %s."), server_.c_str()); TCHAR *msg = mir_a2t(str); parent->UpdateChat(NULL, msg); @@ -481,7 +481,7 @@ bool Omegle_client::events() std::string count = utils::text::trim( resp.data.substr(pos, resp.data.find("]", pos) - pos)); char str[255]; - mir_snprintf(str, SIZEOF(str), Translate("On whole Omegle are %s strangers online now."), count.c_str()); + mir_snprintf(str, Translate("On whole Omegle are %s strangers online now."), count.c_str()); TCHAR *msg = mir_a2t_cp(str,CP_UTF8); parent->UpdateChat(NULL, msg); @@ -635,7 +635,7 @@ bool Omegle_client::events() resp.data.substr(pos, resp.data.find("\"]", pos) - pos) )) ); char str[255]; - mir_snprintf(str, SIZEOF(str), Translate("%s disconnected."), Translate(stranger.c_str())); + mir_snprintf(str, Translate("%s disconnected."), Translate(stranger.c_str())); TCHAR *msg = mir_a2t(str); parent->UpdateChat(NULL, msg); -- cgit v1.2.3