You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 1999/12/31 02:16:54 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/unix open.c
rbb 99/12/30 17:16:53
Modified: src/lib/apr/file_io/unix open.c
Log:
Fix a nasty little bug that was causing a seg fault everytime we tried
starting Apache with an existing pid file. When APR allocates space, it
has to allocate the right amount.
Revision Changes Path
1.29 +1 -1 apache-2.0/src/lib/apr/file_io/unix/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/open.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- open.c 1999/12/30 19:50:20 1.28
+++ open.c 1999/12/31 01:16:53 1.29
@@ -311,7 +311,7 @@
*/
ap_status_t ap_open_stderr(struct file_t **thefile, ap_context_t *cont)
{
- (*thefile) = ap_pcalloc(cont, sizeof(ap_os_file_t *));
+ (*thefile) = ap_pcalloc(cont, sizeof(struct file_t));
if ((*thefile) == NULL) {
return APR_ENOMEM;
}