add casting to increased void pointer

pull/9668/head
Moran Peker 2019-02-28 20:30:05 +02:00
parent 116e14ade6
commit 83d084afef
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ attest_create_token(struct useful_buf_c *challenge,
/* FixMe: Special challenge with option flags appended. This might can
* be removed when the public API can take option_flags.
*/
option_flags = *(uint32_t *)(challenge->ptr + 32);
option_flags = *(uint32_t *)((uint8_t*)challenge->ptr + 32);
challenge->len = 32;
}