From dd8167ac202bd21dfd2548efdcd2691b217f794e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Aug 2012 13:17:22 +0000 Subject: crash when popups are disabled git-svn-id: http://svn.miranda-ng.org/main/trunk@1379 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Notifications.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 857a38229a..3bcc187f4a 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -119,7 +119,7 @@ void ShowPopup(HWND hDlg, LPCTSTR ptszTitle, LPCTSTR ptszText, int Number, int A { if ( !ServiceExists(MS_POPUP_ADDPOPUPEX) || !DBGetContactSettingByte(NULL, "PopUp", "ModuleIsEnabled", 1) || !DBGetContactSettingByte(NULL, MODNAME, "Popups2", DEFAULT_POPUP_ENABLED)) { char setting[100]; - mir_snprintf(setting, SIZEOF(setting), "Popups%sM", Number); + mir_snprintf(setting, SIZEOF(setting), "Popups%dM", Number); if (DBGetContactSettingByte(NULL, MODNAME, setting, DEFAULT_MESSAGE_ENABLED)) { int iMsgType; switch( Number ) { -- cgit v1.2.3