fix auth read

This commit is contained in:
veclavtlica
2026-10-07 12:05:28 +03:00
parent 1e200cc7f2
commit e7abe1a1d2
3 changed files with 15 additions and 11 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ typedef struct com_buf {
p_v->flags = p_f | COM_BUF_STACK; \
p_v->typesz = sizeof(p_t);
#define com_buf_index(p_t, p_v, p_i) \
(p_t *)(&(p_v)->data[(p_v)->typesz * (p_i)])
#define com_buf_index_as(p_t, p_v, p_i) \
(p_t *)(&(p_v)->data[sizeof(p_t) * (p_i)])
/* Dynamic allocation to persist no matter the function flow. */
struct com_buf *com_buf_make(uint32_t cap, uint32_t flags);