From 9d32b9cd791fb5f51dad17567152c70a8511a500 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 25 Jul 2013 20:15:05 +0000 Subject: replace sprintf to mir_snprintf (part 6) git-svn-id: http://svn.miranda-ng.org/main/trunk@5485 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/dialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Non-IM Contact/src/dialog.cpp') diff --git a/plugins/Non-IM Contact/src/dialog.cpp b/plugins/Non-IM Contact/src/dialog.cpp index 168caa6482..c457ab1ed6 100644 --- a/plugins/Non-IM Contact/src/dialog.cpp +++ b/plugins/Non-IM Contact/src/dialog.cpp @@ -191,15 +191,15 @@ INT_PTR CALLBACK TestWindowDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP GetDlgItemTextA(hwnd, IDC_STRING, str2replace, MAX_STRING_LENGTH); switch (stringReplacer(str2replace, replacedString, NULL)) { case ERROR_NO_LINE_AFTER_VAR_F: - wsprintfA(replacedString, "ERROR: no %s","%line or %wholeline or %lastline after %fn"); + mir_snprintf(replacedString, SIZEOF(replacedString), "ERROR: no %s","%line or %wholeline or %lastline after %fn"); error = 1; break; case ERROR_LINE_NOT_READ: - wsprintfA(replacedString, "ERROR: file couldnt be opened "); + mir_snprintf(replacedString, SIZEOF(replacedString), "ERROR: file couldnt be opened "); error = 1; break; case ERROR_NO_FILE: - wsprintfA(replacedString, "ERROR: no file specified in settings"); + mir_snprintf(replacedString, SIZEOF(replacedString), "ERROR: no file specified in settings"); error = 1; break; default: @@ -298,7 +298,7 @@ void DoPropertySheet(HANDLE hContact, HINSTANCE hInst) psh.hInstance = hInst; psh.pszIcon = MAKEINTRESOURCEA(IDI_MAIN); db_get_static(hContact, MODNAME, "Nick", nick); - wsprintfA(title, "Edit Non-IM Contact \"%s\"", nick); + mir_snprintf(title, SIZEOF(title), "Edit Non-IM Contact \"%s\"", nick); psh.pszCaption = title; psh.nPages = SIZEOF(psp); psh.ppsp = (LPCPROPSHEETPAGEA)&psp; -- cgit v1.2.3