Fix motion_log() message on write file, resize static buffers in webhttpd

This commit is contained in:
AngelCarpintero
2007-11-22 15:47:03 +00:00
parent eb9751868b
commit c18de26970
2 changed files with 6 additions and 6 deletions

2
conf.c
View File

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

View File

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