summaryrefslogtreecommitdiff
path: root/updater/xmldata.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-11-12 12:58:34 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-11-12 12:58:34 +0000
commit41f8db5f1aa22411abdcd27cf32d12f74b947570 (patch)
tree6b687eb58e15fc218e8624c00cc89eb068aa87fa /updater/xmldata.cpp
parent327d6022109997daeaa882044758e544d23b5401 (diff)
Fixed memory leaks
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@559 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/xmldata.cpp')
-rw-r--r--updater/xmldata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/xmldata.cpp b/updater/xmldata.cpp
index e8b1f3a..61239b1 100644
--- a/updater/xmldata.cpp
+++ b/updater/xmldata.cpp
@@ -400,7 +400,7 @@ const char *FindVersion(int file_id, BYTE *pbVersionBytes, int cpbVersionBytes,
char version_string[128];
strncpy(version_string, (char *)pbVersionBytes, cpbVersionBytes);
- version_string[cpbVersionBytes] = 0;
+ version_string[sizeof(version_string)-1] = 0;
ezxml_t root = ezxml_get(doc[cat], "channel", 0, "item", -1);
while (root) {