summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2020-08-18 01:38:14 -0700
committerStephen Hines <srhines@google.com>2020-08-18 01:40:41 -0700
commit62165a180883889c3bdd5c99fc3bdd91778b0c25 (patch)
treea771f5fe05336a026519bc8e61bf3f1b3b814f72 /libc/malloc_hooks/malloc_hooks.cpp
parent3936985e75eace1adeeb8d64d4c98e737318d284 (diff)
Cast from const void * -> const char * when using memchr().
bionic/tests/fortify_test.cpp:207:31: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat] ASSERT_FORTIFY(printf("%s", memchr(myfoo.a, 'a', asize))); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Bug: http://b/155835175 Test: atest for bionic Change-Id: I0fa4e63deadffb7391e66ab834ff11e4f1d6dba6
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions