summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-22 19:51:34 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-22 19:51:34 +0000
commit5e1548f7902322e8efe75c390c64c6b958c43b2d (patch)
tree65ab9d39bbf13597c6aa6d3a5348cd7752ce32dc /plugins/Watrack_MPD/src/main.cpp
parent5a168e085110bb7458b70e8b9a0075f161b40166 (diff)
WATrack_MPD:
- Fixed memory leaks git-svn-id: http://svn.miranda-ng.org/main/trunk@11894 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src/main.cpp')
-rwxr-xr-xplugins/Watrack_MPD/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp
index 85c595be9b..00063245b9 100755
--- a/plugins/Watrack_MPD/src/main.cpp
+++ b/plugins/Watrack_MPD/src/main.cpp
@@ -123,7 +123,7 @@ int Parser()
for(i = 0; ((ptr[i] != '\n') && (ptr[i] != '\0')); i++)
tmp[i] = ptr[i];
tmp[i] = '\0';
- strcpy(ver, tmp);
+ strncpy_s(ver, tmp, _TRUNCATE);
SongInfo.txtver = mir_utf8decodeT(tmp);
}
else