From ce745b5c14b000c3aec9b9c92769da5adebda5e9 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 1 Mar 2015 17:40:01 +0000 Subject: NewXStatusNotify: - minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewXstatusNotify/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/NewXstatusNotify/src/main.cpp') 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); } -- cgit v1.2.3