diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-14 20:47:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-28 22:26:22 +0200 |
commit | 5ca84a7c03c7d9f9f27c92b7a0aa8cf2faf0aeb1 (patch) | |
tree | c8a368109874d780148a6b27fe0589b089a27173 | |
parent | 996e8cbb0c0f94fbbd8662d4ee80b599f6cb0020 (diff) | |
download | slirp-5ca84a7c03c7d9f9f27c92b7a0aa8cf2faf0aeb1.zip slirp-5ca84a7c03c7d9f9f27c92b7a0aa8cf2faf0aeb1.tar.gz slirp-5ca84a7c03c7d9f9f27c92b7a0aa8cf2faf0aeb1.tar.bz2 |
Fix arithmetic on void *
-rw-r--r-- | src/ncsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -318,7 +318,7 @@ void ncsi_input(Slirp *slirp, const uint8_t *pkt, int pkt_len) /* Add the optional checksum at the end of the frame. */ checksum = ncsi_calculate_checksum((uint8_t *)rnh, ncsi_rsp_len); - pchecksum = (uint32_t *)((void *)rnh + ncsi_rsp_len); + pchecksum = (uint32_t *)((char *)rnh + ncsi_rsp_len); *pchecksum = htonl(checksum); ncsi_rsp_len += 4; |