Increased max config line size from 512 to 8192 bytes

This commit is contained in:
Sergey Lyubka 2011-10-31 11:15:10 +00:00
parent b30e1893dc
commit 79df70f519

3
main.c
View File

@ -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;