subr_prf: Use "sizeof current_boot_tag" instead

This commit is contained in:
Kyle Evans 2018-08-09 17:53:18 +00:00
parent 2a4650cc11
commit 4c793b68da

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);