about summary refs log tree commit diff stats
path: root/src/uv_link_t.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-28 12:08:03 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-28 12:08:03 -0400
commit8f7cfa346416e208a0c711730b3afbfa84763dff (patch)
tree44b25a76b239d4956414354640b4be8d48d79410 /src/uv_link_t.c
parent88f9b692af5cf402e7022a0b39c5bccd129f1fe8 (diff)
downloaduv_link_t-8f7cfa346416e208a0c711730b3afbfa84763dff.tar.gz
api: lots of text
Diffstat (limited to 'src/uv_link_t.c')
-rw-r--r--src/uv_link_t.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/uv_link_t.c b/src/uv_link_t.c
index d63a07b..852e26e 100644
--- a/src/uv_link_t.c
+++ b/src/uv_link_t.c
@@ -6,10 +6,8 @@
 static void uv_link_def_alloc_cb(uv_link_t* link,
                                  size_t suggested_size,
                                  uv_buf_t* buf) {
-  static const size_t kBufferSize = 16 * 1024;
-
-  buf->base = malloc(kBufferSize);
-  buf->len = kBufferSize;
+  buf->base = malloc(suggested_size);
+  buf->len = suggested_size;
 
   CHECK_NE(buf->base, NULL, "uv_link_t: alloc_cb failure");
 }