summaryrefslogtreecommitdiff
path: root/updater/xmldata.cpp
diff options
context:
space:
mode:
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) {