wolfssl: Avoid void pointer arithmetic
This is a compiler specific extension and not compliant with the C standard. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
7122a02fa5
commit
1c7e61a35a
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ static int wolfssl_receive_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx)
|
||||||
if (get > (wpabuf_len(data->in_data) - data->consumed))
|
if (get > (wpabuf_len(data->in_data) - data->consumed))
|
||||||
get = wpabuf_len(data->in_data) - data->consumed;
|
get = wpabuf_len(data->in_data) - data->consumed;
|
||||||
|
|
||||||
os_memcpy(buf, wpabuf_head(data->in_data) + data->consumed, get);
|
os_memcpy(buf, wpabuf_head_u8(data->in_data) + data->consumed, get);
|
||||||
data->consumed += get;
|
data->consumed += get;
|
||||||
|
|
||||||
if (get == 0)
|
if (get == 0)
|
||||||
|
|
Loading…
Reference in a new issue