mirror of
https://github.com/Motion-Project/motion.git
synced 2026-06-12 07:44:34 -04:00
Fix motion_log() message on write file, resize static buffers in webhttpd
This commit is contained in:
2
conf.c
2
conf.c
@@ -1483,7 +1483,7 @@ void conf_print(struct context **cnt)
|
||||
FILE *conffile;
|
||||
|
||||
for (thread=0; cnt[thread]; thread++) {
|
||||
motion_log(LOG_INFO, 1, "Writing config file to %s",cnt[thread]->conf_filename);
|
||||
motion_log(LOG_INFO, 0, "Writing config file to %s",cnt[thread]->conf_filename);
|
||||
conffile=myfopen(cnt[thread]->conf_filename, "w");
|
||||
if (!conffile)
|
||||
continue;
|
||||
|
||||
10
webhttpd.c
10
webhttpd.c
@@ -2059,11 +2059,11 @@ static short unsigned int read_client(int client_socket, void *userdata, char *a
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
char method[sizeof (buffer)];
|
||||
char url[sizeof (buffer)];
|
||||
char protocol[sizeof (buffer)];
|
||||
char host[sizeof (buffer)];
|
||||
char host_url[sizeof (buffer)];
|
||||
char method[20];
|
||||
char url[512];
|
||||
char protocol[20];
|
||||
char host[20];
|
||||
char host_url[20];
|
||||
char *authentication=NULL;
|
||||
|
||||
buffer[nread] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user