From 79df70f519d03382d579d838d7c29ee28b545a9e Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Mon, 31 Oct 2011 11:15:10 +0000 Subject: [PATCH] Increased max config line size from 512 to 8192 bytes --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index c70633bc..1b498b94 100644 --- a/main.c +++ b/main.c @@ -54,6 +54,7 @@ #endif // _WIN32 #define MAX_OPTIONS 40 +#define MAX_CONF_FILE_LINE_SIZE (8 * 1024) static int exit_flag; static char server_name[40]; // Set by init_server_name() @@ -154,7 +155,7 @@ static void set_option(char **options, const char *name, const char *value) { } static void process_command_line_arguments(char *argv[], char **options) { - char line[512], opt[512], val[512], *p; + char line[MAX_CONF_FILE_LINE_SIZE], opt[sizeof(line)], val[sizeof(line)], *p; FILE *fp = NULL; size_t i, cmd_line_opts_start = 1, line_no = 0;