mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Test resize in appendl().
This commit is contained in:
parent
946a910935
commit
6e1f045393
@ -387,7 +387,9 @@ static unsigned int xasprintf(char **ret, const char *format, ...) {
|
|||||||
/* Append buffer code. A somewhat efficient string buffer with pool-based
|
/* Append buffer code. A somewhat efficient string buffer with pool-based
|
||||||
* reallocation.
|
* reallocation.
|
||||||
*/
|
*/
|
||||||
#define APBUF_INIT 4096
|
#ifndef APBUF_INIT
|
||||||
|
# define APBUF_INIT 4096
|
||||||
|
#endif
|
||||||
#define APBUF_GROW APBUF_INIT
|
#define APBUF_GROW APBUF_INIT
|
||||||
struct apbuf {
|
struct apbuf {
|
||||||
size_t length, pool;
|
size_t length, pool;
|
||||||
|
@ -13,7 +13,7 @@ if [ ! -e test.py ]; then
|
|||||||
fi
|
fi
|
||||||
if [ \( ! -x a.out \) -o \( ../darkhttpd.c -nt a.out \) ]; then
|
if [ \( ! -x a.out \) -o \( ../darkhttpd.c -nt a.out \) ]; then
|
||||||
echo "===> building a.out, darkhttpd.gcno"
|
echo "===> building a.out, darkhttpd.gcno"
|
||||||
$CC -g -O2 -fprofile-arcs -ftest-coverage -DDEBUG ../darkhttpd.c || exit 1
|
$CC -g -O2 -fprofile-arcs -ftest-coverage -DDEBUG -DAPBUF_INIT=1 ../darkhttpd.c || exit 1
|
||||||
fi
|
fi
|
||||||
if [ -e $DIR ]; then
|
if [ -e $DIR ]; then
|
||||||
rm -rf $DIR || exit 1
|
rm -rf $DIR || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user