From c18de2697092d2a39a2ef182d874ed659ec6bfaa Mon Sep 17 00:00:00 2001 From: AngelCarpintero Date: Thu, 22 Nov 2007 15:47:03 +0000 Subject: [PATCH] Fix motion_log() message on write file, resize static buffers in webhttpd --- conf.c | 2 +- webhttpd.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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';