From c370af60855db957c5b200914bf0bde743845528 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Aug 2015 16:22:41 +0000 Subject: mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever possible git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/database.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Db3x_mmap/src/database.cpp') diff --git a/plugins/Db3x_mmap/src/database.cpp b/plugins/Db3x_mmap/src/database.cpp index 8f7899db24..dae48644ac 100644 --- a/plugins/Db3x_mmap/src/database.cpp +++ b/plugins/Db3x_mmap/src/database.cpp @@ -87,7 +87,7 @@ void __cdecl dbpanic(void *) msg = TranslateT("Disk is full. Miranda will now shut down."); TCHAR err[256]; - mir_sntprintf(err, _countof(err), msg, TranslateT("Database failure. Miranda will now shut down."), dwErr); + mir_sntprintf(err, msg, TranslateT("Database failure. Miranda will now shut down."), dwErr); MessageBox(0, err, TranslateT("Database Error"), MB_SETFOREGROUND | MB_TOPMOST | MB_APPLMODAL | MB_ICONWARNING | MB_OK); } @@ -128,13 +128,13 @@ char* printVariant(DBVARIANT* p) static char boo[1000]; switch (p->type) { - case DBVT_BYTE: mir_snprintf(boo, _countof(boo), "byte: %d", p->bVal ); break; - case DBVT_WORD: mir_snprintf(boo, _countof(boo), "word: %d", p->wVal ); break; - case DBVT_DWORD: mir_snprintf(boo, _countof(boo), "dword: %d", p->dVal ); break; + case DBVT_BYTE: mir_snprintf(boo, "byte: %d", p->bVal ); break; + case DBVT_WORD: mir_snprintf(boo, "word: %d", p->wVal ); break; + case DBVT_DWORD: mir_snprintf(boo, "dword: %d", p->dVal ); break; case DBVT_UTF8: - case DBVT_ASCIIZ: mir_snprintf(boo, _countof(boo), "string: '%s'", p->pszVal); break; + case DBVT_ASCIIZ: mir_snprintf(boo, "string: '%s'", p->pszVal); break; case DBVT_DELETED: mir_strcpy(boo, "deleted"); break; - default: mir_snprintf(boo, _countof(boo), "crap: %d", p->type ); break; + default: mir_snprintf(boo, "crap: %d", p->type ); break; } return boo; } -- cgit v1.2.3