summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-07-20 12:31:38 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-07-20 12:31:38 +0200
commitc9094aad186d641a11fb0eef3cba11d7ec1469f3 (patch)
treeee43599cf8c7d7e117a7e7e950e17f819f7f0f3f /tools.c
parent7c86dcaa270fd624d93fb73316052f1007aa7d85 (diff)
downloadvdr-c9094aad186d641a11fb0eef3cba11d7ec1469f3.tar.gz
vdr-c9094aad186d641a11fb0eef3cba11d7ec1469f3.tar.bz2
Fixed a buffer overflow in initializing the system character table
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index edff762a..2e646d19 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.130 2007/06/23 13:38:30 kls Exp $
+ * $Id: tools.c 1.131 2007/07/16 15:23:28 kls Exp $
*/
#include "tools.h"
@@ -756,7 +756,7 @@ void cCharSetConv::SetSystemCharacterTable(const char *CharacterTable)
char buf[129];
for (int i = 0; i < 128; i++)
buf[i] = i + 128;
- buf[129] = 0;
+ buf[128] = 0;
cCharSetConv csc(CharacterTable);
const char *s = csc.Convert(buf);
int i = 0;