Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
79df70f5
Commit
79df70f5
authored
13 years ago
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increased max config line size from 512 to 8192 bytes
parent
b30e1893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
main.c
main.c
+2
-1
No files found.
main.c
View file @
79df70f5
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment