From 1b33fad341b6eae6f3f377e67b91ed81b845269a Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 24 Jan 2015 20:20:56 +0000 Subject: Non-IM-Contacts: -Many memory issues fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@11900 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/timer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Non-IM Contact/src/timer.cpp') diff --git a/plugins/Non-IM Contact/src/timer.cpp b/plugins/Non-IM Contact/src/timer.cpp index be73097219..fad1057038 100644 --- a/plugins/Non-IM Contact/src/timer.cpp +++ b/plugins/Non-IM Contact/src/timer.cpp @@ -9,7 +9,7 @@ UINT_PTR timerId; // Description : called when the timer interval occurs //===================================================== -void timerFunc(LPVOID di) +void timerFunc(void *di) { char text[512], fn[16], szFileName[MAX_PATH], temp[MAX_PATH]; @@ -27,8 +27,8 @@ void timerFunc(LPVOID di) if (!db_get_static(NULL, MODNAME, fn, text)) break; - if (!strncmp("http://", text, strlen("http://"))) { - strcat(fn, "_timer"); + if (!strncmp("http://", text, strlen("http://")) || !strncmp("https://", text, strlen("https://"))) { + mir_snprintf(fn, SIZEOF(fn), "fn%d_timer", i); int timer = db_get_w(NULL, MODNAME, fn, 60); if (timer && !(timerCount % timer)) { if (!InternetDownloadFile(text)) { -- cgit v1.2.3