1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337546

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