mirror_zfs/lib/libspl
Rob Norris 6604fe9a06 backtrace: fix off-by-one on string output
sizeof("foo") includes the trailing null byte, so all the output had
nulls through it. Most terminals quietly ignore it, but it makes some
tools misdetect file types and other annoyances.

Easy fix: subtract 1.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16862
2024-12-16 10:26:20 -08:00
..
include Return boolean_t in inline functions of lib/libspl/include/sys/uio.h 2024-10-09 13:44:36 -07:00
os libzfs: use zfs_strerror() in place of strerror() 2024-01-29 09:54:57 -08:00
assert.c backtrace: rework for signal safety 2024-05-14 09:48:51 -07:00
atomic.c Remove unnecessary CSTYLED escapes on top-level macro invocations 2024-12-06 09:05:02 -08:00
backtrace.c backtrace: fix off-by-one on string output 2024-12-16 10:26:20 -08:00
getexecname.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
libspl_impl.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
list.c Remove list_size struct member from list implementation 2024-01-26 14:46:42 -08:00
Makefile.am libspl: lift backtrace into a separate file 2024-05-14 09:48:45 -07:00
mkdirp.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
page.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
strlcat.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
strlcpy.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
timestamp.c JSON output support for zpool status 2024-08-06 12:47:10 -07:00