summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buf.c b/buf.c
index 661514be..88f5f166 100644
--- a/buf.c
+++ b/buf.c
@@ -114,7 +114,7 @@ val make_duplicate_buf(val len, mem_t *data)
obj->b.type = BUF;
obj->b.data = chk_copy_obj(data, c_num(len));
obj->b.len = len;
- obj->b.size = nil;
+ obj->b.size = len;
return obj;
}