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/StartupSilence/src/main.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'plugins/StartupSilence/src') diff --git a/plugins/StartupSilence/src/main.cpp b/plugins/StartupSilence/src/main.cpp index 0cc5698791..767fb8bfc7 100644 --- a/plugins/StartupSilence/src/main.cpp +++ b/plugins/StartupSilence/src/main.cpp @@ -160,16 +160,16 @@ void EnablePopupModule() void InitSettings() { if(gethostname(hostname, _countof(hostname)) == 0){ - mir_snprintf(EnabledComp, _countof(EnabledComp), "%s_Enabled", hostname); - mir_snprintf(DelayComp, _countof(DelayComp), "%s_Delay", hostname); - mir_snprintf(PopUpComp, _countof(PopUpComp), "%s_PopUp", hostname); - mir_snprintf(PopUpTimeComp, _countof(PopUpTimeComp), "%s_PopUpTime", hostname); - mir_snprintf(MenuitemComp, _countof(MenuitemComp), "%s_MenuItem", hostname); - mir_snprintf(TTBButtonsComp, _countof(TTBButtonsComp), "%s_TTBButtons", hostname); - mir_snprintf(DefSoundComp, _countof(DefSoundComp), "%s_DefSound", hostname); - mir_snprintf(DefPopupComp, _countof(DefPopupComp), "%s_DefPopup", hostname); - mir_snprintf(DefEnabledComp, _countof(DefEnabledComp), "%s_DefEnabled", hostname); - mir_snprintf(NonStatusAllowComp, _countof(NonStatusAllowComp), "%s_NonStatusAllow", hostname); + mir_snprintf(EnabledComp, "%s_Enabled", hostname); + mir_snprintf(DelayComp, "%s_Delay", hostname); + mir_snprintf(PopUpComp, "%s_PopUp", hostname); + mir_snprintf(PopUpTimeComp, "%s_PopUpTime", hostname); + mir_snprintf(MenuitemComp, "%s_MenuItem", hostname); + mir_snprintf(TTBButtonsComp, "%s_TTBButtons", hostname); + mir_snprintf(DefSoundComp, "%s_DefSound", hostname); + mir_snprintf(DefPopupComp, "%s_DefPopup", hostname); + mir_snprintf(DefEnabledComp, "%s_DefEnabled", hostname); + mir_snprintf(NonStatusAllowComp, "%s_NonStatusAllow", hostname); } //first run on the host, initial setting if (!(delay = db_get_dw(NULL, MODULE_NAME, DelayComp, 0))) @@ -340,7 +340,7 @@ void RemoveTTButtons() HANDLE GetIconHandle(char *szIcon) { char szSettingName[64]; - mir_snprintf(szSettingName, _countof(szSettingName), "%s_%s", MENU_NAME, szIcon); + mir_snprintf(szSettingName, "%s_%s", MENU_NAME, szIcon); return IcoLib_GetIconHandle(szSettingName); } -- cgit v1.2.3