diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-11-04 17:18:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-11-04 17:18:33 +0100 |
commit | 92af12daac8a33db8be0b33335bd79330ced9463 (patch) | |
tree | 32416d5ef4b5f96d09905d40c076a368fd275097 /tools.h | |
parent | 903e929a85945567e9433b93f03567fe2f3b98fc (diff) | |
download | vdr-92af12daac8a33db8be0b33335bd79330ced9463.tar.gz vdr-92af12daac8a33db8be0b33335bd79330ced9463.tar.bz2 |
cReadLine now dynamically allocates its buffer; changed cConfig::Load() to use cReadLine instead of a fixed buffer
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 7 |
1 files changed, 5 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.h 1.81 2005/10/31 12:54:36 kls Exp $ + * $Id: tools.h 1.82 2005/11/04 17:05:35 kls Exp $ */ #ifndef __TOOLS_H @@ -135,8 +135,11 @@ public: class cReadLine { private: - char buffer[MAXPARSEBUFFER]; + size_t size; + char *buffer; public: + cReadLine(void); + ~cReadLine(); char *Read(FILE *f); }; |