Date: Thu, 9 Aug 2018 17:53:19 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r337546 - head/sys/kern Message-ID: <201808091753.w79HrJsY076268@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Thu Aug 9 17:53:18 2018 New Revision: 337546 URL: https://svnweb.freebsd.org/changeset/base/337546 Log: subr_prf: Use "sizeof current_boot_tag" instead Modified: head/sys/kern/subr_prf.c Modified: head/sys/kern/subr_prf.c ============================================================================== --- head/sys/kern/subr_prf.c Thu Aug 9 17:47:47 2018 (r337545) +++ head/sys/kern/subr_prf.c Thu Aug 9 17:53:18 2018 (r337546) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808091753.w79HrJsY076268>