summaryrefslogtreecommitdiff
path: root/plugins/Non-IM Contact/src/timer.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-24 20:20:56 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-24 20:20:56 +0000
commit1b33fad341b6eae6f3f377e67b91ed81b845269a (patch)
treee3eb972e370b65811c8cb11ee09fb0701d38f81b /plugins/Non-IM Contact/src/timer.cpp
parentf95c6ed55da24f45ea3cf15d3802d6ca686c16a2 (diff)
Non-IM-Contacts:
-Many memory issues fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@11900 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/timer.cpp')
-rw-r--r--plugins/Non-IM Contact/src/timer.cpp6
1 files changed, 3 insertions, 3 deletions
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)) {