diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-10-13 12:03:39 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-10-13 12:03:39 +0200 |
commit | 929d3e9ba290751aca1c0a16d2498968bdc1e3c1 (patch) | |
tree | e858c92568e3c9bad3d282d4930514f2c1c0769f /tools.c | |
parent | 441b002be93397aea40eda08dc2439c764b81945 (diff) | |
download | vdr-929d3e9ba290751aca1c0a16d2498968bdc1e3c1.tar.gz vdr-929d3e9ba290751aca1c0a16d2498968bdc1e3c1.tar.bz2 |
Fixed handling reallocated memory in cCharSetConv::Convert()
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.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; } |