subr_prf: Use "sizeof current_boot_tag" instead
This commit is contained in:
parent
2a4650cc11
commit
4c793b68da
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user