From 0fa24c0efec9d7ad8702f9374f2f2b64c9a22cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 11 Oct 2018 17:01:17 -0700 Subject: [PATCH] sec: fix bug in MallocedBuffer --- src/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 4036383dee92de..74706b4d275a69 100644 --- a/src/util.h +++ b/src/util.h @@ -451,7 +451,7 @@ struct MallocedBuffer { MallocedBuffer() : data(nullptr) {} explicit MallocedBuffer(size_t size) : data(Malloc(size)), size(size) {} - MallocedBuffer(char* data, size_t size) : data(data), size(size) {} + MallocedBuffer(T* data, size_t size) : data(data), size(size) {} MallocedBuffer(MallocedBuffer&& other) : data(other.data), size(other.size) { other.data = nullptr; }