Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 395 invoked by uid 6000); 31 Dec 1999 01:16:58 -0000 Received: (qmail 240 invoked by uid 2016); 31 Dec 1999 01:16:55 -0000 Delivered-To: apcore-apache-2.0-cvs@apache.org Received: (qmail 206 invoked by uid 236); 31 Dec 1999 01:16:54 -0000 Date: 31 Dec 1999 01:16:54 -0000 Message-ID: <19991231011654.200.qmail@hyperreal.org> From: rbb@hyperreal.org To: apache-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/lib/apr/file_io/unix open.c Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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; }