summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
authorAndreas Brugger <brougs78@gmx.net>2006-11-19 19:11:29 +0100
committerThomas Günther <tom@toms-cafe.de>2009-06-03 04:03:18 +0200
commit165c14206aa2e06c33ac887f9b9d0f816573a5fe (patch)
treeb10d11bfb48a418a464d830ca0ef7c24d619ef92 /xml
parent74a5cc8e14900d48386e33cb576f154a6dd7e557 (diff)
parent5fe5e29f300d653e014f3b656b96f00901f0b106 (diff)
downloadvdr-plugin-text2skin-165c14206aa2e06c33ac887f9b9d0f816573a5fe.tar.gz
vdr-plugin-text2skin-165c14206aa2e06c33ac887f9b9d0f816573a5fe.tar.bz2
2006-11-19: Version 1.1-cvs_ext-0.9a (vdr-text2skin-1.1-cvs_ext-0.9a.diff)
- added APIVERSION to the Makefile for vdr-1.3.47 - fixed possible buffer overflow in xml reading (updated to cvs-version of text2skin)
Diffstat (limited to 'xml')
-rw-r--r--xml/xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xml/xml.c b/xml/xml.c
index a6b33c3..81c6655 100644
--- a/xml/xml.c
+++ b/xml/xml.c
@@ -1,5 +1,5 @@
/*
- * $Id: xml.c,v 1.1 2004/12/19 22:03:49 lordjaxom Exp $
+ * $Id: xml.c,v 1.3 2006/09/04 20:51:06 lordjaxom Exp $
* This module was kindly provided by Clemens Kirchgatterer
*/
@@ -38,7 +38,7 @@ XML::XML(const string &file) {
buffer = new char [size+1];
f.read(buffer, size);
f.close();
- data = buffer;
+ data.assign(buffer, size);
delete[] buffer;
nodestartcb = NULL;
nodeendcb = NULL;