diff --git a/conf.c b/conf.c index e10fc3a4..08f8dc23 100644 --- a/conf.c +++ b/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; diff --git a/webhttpd.c b/webhttpd.c index 4506fed7..eeec4572 100644 --- a/webhttpd.c +++ b/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';