diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-20 12:31:38 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-20 12:31:38 +0200 |
commit | c9094aad186d641a11fb0eef3cba11d7ec1469f3 (patch) | |
tree | ee43599cf8c7d7e117a7e7e950e17f819f7f0f3f /tools.c | |
parent | 7c86dcaa270fd624d93fb73316052f1007aa7d85 (diff) | |
download | vdr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |