snprintf() do not write more than specified bytes including the terminating null byte. If the output was truncated due to this limit then the return byte is the number of chars excluding the terminating null byte. So remove NULL byte appends after snprintf() in this patch. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ic5b7719791721c6ae7b1dd8367be454b34df0fe5 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464476 Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
bdev_raid.c | ||
bdev.c | ||
compress.c | ||
crypto.c | ||
gpt | ||
mt | ||
part.c | ||
pmem | ||
scsi_nvme.c | ||
vbdev_lvol.c | ||
Makefile |