]> git.eshelyaron.com Git - emacs.git/commit
Avoid undefined behavior when printing function pointers.
authorPhilipp Stephani <phst@google.com>
Sat, 4 May 2019 20:59:46 +0000 (22:59 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 4 May 2019 21:04:24 +0000 (23:04 +0200)
commit1242a63671f3fc3d427d9d8061338f826e585031
treef911947a957a961f99031ac71211ed8be880cef9
parent2e0947abbc384a55411880c6d49020b43fe8b5f5
Avoid undefined behavior when printing function pointers.

* src/print.c (print_vectorlike): Don’t pass a function pointer to
‘snprintf’, as that is undefined behavior.  Instead, print the
individual bytes making up the function pointer.
src/print.c