summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-04-07 19:17:54 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-04-07 19:17:54 +0000
commitaed337ad90f145991a39b7900b8d42dc18178366 (patch)
treeca09e611f0f0fd6f6ba8c83364f548d097e3ab2e /plugins/SecureIM/src/main.cpp
parentf19019ce1e932f1c773ca00e87fd64aea6e32430 (diff)
SecureIM:
- Minor Fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/main.cpp')
-rw-r--r--plugins/SecureIM/src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/SecureIM/src/main.cpp b/plugins/SecureIM/src/main.cpp
index c1e5af66e5..8abf787e46 100644
--- a/plugins/SecureIM/src/main.cpp
+++ b/plugins/SecureIM/src/main.cpp
@@ -163,11 +163,11 @@ static int onModulesLoaded(WPARAM, LPARAM)
LPSTR tmp = db_get_sa(0, MODULENAME, "gpgExec");
if (tmp) {
- strncpy(gpgexec, tmp, sizeof(gpgexec));
+ strncpy(gpgexec, tmp, sizeof(gpgexec)-1);
mir_free(tmp);
}
if (tmp = db_get_sa(0, MODULENAME, "gpgHome")) {
- strncpy(gpghome, tmp, sizeof(gpghome));
+ strncpy(gpghome, tmp, sizeof(gpghome)-1);
mir_free(tmp);
}
@@ -390,5 +390,6 @@ extern "C" __declspec(dllexport) int __cdecl Load(void)
extern "C" __declspec(dllexport) int __cdecl Unload()
{
DeleteCriticalSection(&localQueueMutex);
+ freelib();
return 0;
}