Compare commits

..

No commits in common. "36557dcf3d4425b0265b7e30043a48dc693674cc" and "238f9a9b975ab97195b0982a08c8939e4eee2251" have entirely different histories.

View file

@ -82,7 +82,7 @@ template<>
inline void read_type<buffer>(buffer &val, char *data)
{
val.allocated = val.size + 1;
val.data = (char *)calloc(val.size, sizeof(char) + 1);
val.data = (char *)malloc(val.size * sizeof(char) + 1);
std::memcpy(val.data, data, val.size);
}