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 --- plugins/CrashDumper/src/exhndlr.cpp | 2 +- plugins/CrashDumper/src/upload.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/CrashDumper/src') diff --git a/plugins/CrashDumper/src/exhndlr.cpp b/plugins/CrashDumper/src/exhndlr.cpp index 0253f5823a..a7aaab2a45 100644 --- a/plugins/CrashDumper/src/exhndlr.cpp +++ b/plugins/CrashDumper/src/exhndlr.cpp @@ -29,7 +29,7 @@ int myDebugFilter(unsigned int code, PEXCEPTION_POINTERS ep) PDelayLoadInfo dlld = (PDelayLoadInfo)ep->ExceptionRecord->ExceptionInformation[0]; char str[256]; - int off = mir_snprintf(str, SIZEOF(str), "dbghelp.dll v.5.0 or later required to provide a crash report\n"); + int off = mir_snprintf(str, "dbghelp.dll v.5.0 or later required to provide a crash report\n"); off += mir_snprintf(str + off, SIZEOF(str) - off, "Missing Module: %s ", dlld->szDll); if (dlld->dlp.fImportByName) diff --git a/plugins/CrashDumper/src/upload.cpp b/plugins/CrashDumper/src/upload.cpp index 7e331f37ce..f277c1eec7 100644 --- a/plugins/CrashDumper/src/upload.cpp +++ b/plugins/CrashDumper/src/upload.cpp @@ -69,8 +69,8 @@ void OpenAuthUrl(const char* url) if (user[0] && pass[0]) { char str[256]; - mir_snprintf(str, SIZEOF(str), url, user); // XXX: fix me - mir_snprintf(str, SIZEOF(str), "http://vi.miranda-ng.org/detail/%s", user); + mir_snprintf(str, url, user); // XXX: fix me + mir_snprintf(str, "http://vi.miranda-ng.org/detail/%s", user); CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)str); } else CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW, (LPARAM)"http://vi.miranda-ng.org/"); @@ -82,7 +82,7 @@ void CreateAuthString(char* auth) GetLoginStr(user, sizeof(user), pass); char str[110]; - int len = mir_snprintf(str, SIZEOF(str), "%s:%s", user, pass); + int len = mir_snprintf(str, "%s:%s", user, pass); mir_snprintf(auth, 250, "Basic %s", ptrA(mir_base64_encode((PBYTE)str, len))); } @@ -205,7 +205,7 @@ void __cdecl VersionInfoUploadThread(void* arg) char user[64], pass[40]; GetLoginStr(user, sizeof(user), pass); char str[256]; - mir_snprintf(str, SIZEOF(str), "http://vi.miranda-ng.org/en/upload?login=%s&pass=%s", user, pass); + mir_snprintf(str, "http://vi.miranda-ng.org/en/upload?login=%s&pass=%s", user, pass); InternetDownloadFile(str, trn); mir_free(trn->buf); -- cgit v1.2.3