This commit is contained in:
azw 2023-05-13 13:23:32 +00:00
parent effb812c83
commit 424f708375

View File

@ -63,7 +63,7 @@ namespace a8
offset_.fetch_sub(len); offset_.fetch_sub(len);
return (char*)malloc(len); return (char*)malloc(len);
} }
buf_head = buf_ + p; buf_head = (BufHead*)(buf_ + p);
buf_head->len = len; buf_head->len = len;
return buf_ + p + sizeof(BufHead); return buf_ + p + sizeof(BufHead);
} }