info: start with a single AUTOBUFCHUNK sized chunk of memory
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 16 Apr 2016 19:33:28 +0000 (21:33 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 16 Apr 2016 20:29:20 +0000 (22:29 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c

index 27b58ab..19ed97e 100644 (file)
@@ -440,7 +440,7 @@ static void send_info(const char * req, unsigned int send_what, int the_socket,
   int contentLengthIndex = 0;
   int headerLength = 0;
 
-  abuf_init(&abuf, 2 * AUTOBUFCHUNK);
+  abuf_init(&abuf, AUTOBUFCHUNK);
 
   if (config->http_headers) {
     http_header_build(name, status, content_type, &abuf, &contentLengthIndex);