diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-14 14:35:40 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-14 14:35:40 +0200 |
commit | e425cb943457ace770538aaf3be421a40a26f99a (patch) | |
tree | d625452a69931286f8921bfe44586ede1684ab02 /tools.c | |
parent | 1e72e33a9739544b64c1d52980ef5f8e43e7f8c1 (diff) | |
download | vdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.gz vdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.bz2 |
Changed size of all parse buffers to 10KB
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 6 |
1 files changed, 2 insertions, 4 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.43 2001/08/26 15:45:41 kls Exp $ + * $Id: tools.c 1.44 2001/09/14 14:35:37 kls Exp $ */ #define _GNU_SOURCE @@ -21,8 +21,6 @@ #include <unistd.h> #include "i18n.h" -#define MaxBuffer 1000 - int SysLogLevel = 3; ssize_t safe_read(int filedes, void *buffer, size_t size) @@ -56,7 +54,7 @@ void writechar(int filedes, char c) char *readline(FILE *f) { - static char buffer[MaxBuffer]; + static char buffer[MAXPARSEBUFFER]; if (fgets(buffer, sizeof(buffer), f) > 0) { int l = strlen(buffer) - 1; if (l >= 0 && buffer[l] == '\n') |