summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-13 12:03:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-13 12:03:39 +0200
commit929d3e9ba290751aca1c0a16d2498968bdc1e3c1 (patch)
treee858c92568e3c9bad3d282d4930514f2c1c0769f /tools.c
parent441b002be93397aea40eda08dc2439c764b81945 (diff)
downloadvdr-929d3e9ba290751aca1c0a16d2498968bdc1e3c1.tar.gz
vdr-929d3e9ba290751aca1c0a16d2498968bdc1e3c1.tar.bz2
Fixed handling reallocated memory in cCharSetConv::Convert()
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 642704ca..bbbcf82f 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.135 2007/08/05 12:18:15 kls Exp $
+ * $Id: tools.c 1.136 2007/10/13 12:00:21 kls Exp $
*/
#include "tools.h"
@@ -791,7 +791,7 @@ const char *cCharSetConv::Convert(const char *From, char *To, size_t ToLength)
size_t d = ToPtr - result;
size_t r = length / 2;
length += r;
- result = (char *)realloc(result, length);
+ Converted = result = (char *)realloc(result, length);
ToLength += r;
ToPtr = result + d;
}