subr_prf: Use "sizeof current_boot_tag" instead

This commit is contained in:
kevans 2018-08-09 17:53:18 +00:00
parent d2718a67f3
commit a4d7516115

View File

@ -1040,7 +1040,7 @@ msgbufinit(void *ptr, int size)
/* Attempt to fetch kern.boot_tag tunable on first mapping */
if (!msgbufmapped)
TUNABLE_STR_FETCH("kern.boot_tag", current_boot_tag,
BOOT_TAG_SZ + 1);
sizeof current_boot_tag);
msgbufp = (struct msgbuf *)(cp + size);
msgbuf_reinit(msgbufp, cp, size);
msgbuf_addstr(msgbufp, -1, current_boot_tag, 0);