mjc 96/10/23 06:28:19
Modified: src http_main.c
Log:
Truncate virtual host correctly
Revision Changes Path
1.79 +2 -2 apache/src/http_main.c
Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -C3 -r1.78 -r1.79
*** http_main.c 1996/10/23 13:15:26 1.78
--- http_main.c 1996/10/23 13:28:17 1.79
***************
*** 50,56 ****
*
*/
! /* $Id: http_main.c,v 1.78 1996/10/23 13:15:26 mjc Exp $ */
/*
* httpd.c: simple http daemon for answering WWW file requests
--- 50,56 ----
*
*/
! /* $Id: http_main.c,v 1.79 1996/10/23 13:28:17 mjc Exp $ */
/*
* httpd.c: simple http daemon for answering WWW file requests
***************
*** 792,798 ****
new_score_rec.request[slot_size] = '\0';
slot_size = sizeof(new_score_rec.vhost) - 1;
strncpy(new_score_rec.vhost,r->server->server_hostname, slot_size);
! new_score_rec.request[slot_size] = '\0';
}
#endif
--- 792,798 ----
new_score_rec.request[slot_size] = '\0';
slot_size = sizeof(new_score_rec.vhost) - 1;
strncpy(new_score_rec.vhost,r->server->server_hostname, slot_size);
! new_score_rec.vhost[slot_size] = '\0';
}
#endif