summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-01 17:40:01 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-01 17:40:01 +0000
commitce745b5c14b000c3aec9b9c92769da5adebda5e9 (patch)
tree22904d2eecbe6022f884529b6b535e8b25bdf2ae /plugins/NewXstatusNotify/src/main.cpp
parent8e84435e099c09fc304d0bcc9a0bed3537ca582e (diff)
NewXStatusNotify:
- minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/main.cpp')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp
index 14cdf6b503..6c20f4b169 100644
--- a/plugins/NewXstatusNotify/src/main.cpp
+++ b/plugins/NewXstatusNotify/src/main.cpp
@@ -343,7 +343,7 @@ void PlayChangeSound(MCONTACT hContact, const char *name)
DBVARIANT dbv;
TCHAR stzSoundFile[MAX_PATH] = { 0 };
if (!db_get_ts(hContact, MODULE, name, &dbv)) {
- _tcscpy(stzSoundFile, dbv.ptszVal);
+ _tcsncpy(stzSoundFile, dbv.ptszVal, SIZEOF(stzSoundFile)-1);
db_free(&dbv);
}