Fix clang warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Sep 2023 05:11:28 +0000 (06:11 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Sep 2023 05:11:28 +0000 (06:11 +0100)
commitdc9567a6e23c0066e5acdb94fbed4f7b66ce8299
tree1067bd00baec941411a9b2b4e7c971bc317a6abf
parenta82ffcff09fc8db463a35b4970f806eaf91ac7a0
Fix clang warning

Clang issues a warning about what we are really intending to do. Use an
explicit type as argument to sizeof().

tracer.c:1152:28: warning: 'memcpy' call operates on objects of type 'const char' while the size is based on a different type 'const char *' [-Wsizeof-pointer-memaccess]
                memcpy(&ptr, ptr, sizeof(ptr));
                             ~~~         ^~~
tracer.c:1152:28: note: did you mean to provide an explicit length?
                memcpy(&ptr, ptr, sizeof(ptr));
                                         ^~~
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/tracer.c
This page took 0.022753 seconds and 4 git commands to generate.