summaryrefslogtreecommitdiffstats
path: root/writecap
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /writecap
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--writecap/pcapio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/writecap/pcapio.c b/writecap/pcapio.c
index 58c49179..bdfb87ad 100644
--- a/writecap/pcapio.c
+++ b/writecap/pcapio.c
@@ -294,7 +294,7 @@ pcapng_write_block(FILE* pfile,
* getting the trailing block_total_length from the length argument gives
* us an implicit check of correctness without needing to do an endian swap
*/
- if (((length & 3) != 0) || (((gintptr)data & 3) != 0)) {
+ if (((length & 3) != 0) || (((intptr_t)data & 3) != 0)) {
*err = EINVAL;
return false;
}