Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: stable/11/sys/boot/common/module.c 321232 2017-07-19 19:06:19Z ngie $");
---
> __FBSDID("$FreeBSD: stable/11/sys/boot/common/module.c 328889 2018-02-05 17:01:18Z kevans $");
255c255
< int ch, verbose;
---
> int ch, verbose, ret = 0;
274c274
< sprintf(lbuf, " %p: ", (void *) fp->f_addr);
---
> snprintf(lbuf, sizeof(lbuf), " %p: ", (void *) fp->f_addr);
277,278c277,280
< sprintf(lbuf, " (%s, 0x%lx)\n", fp->f_type, (long)fp->f_size);
< pager_output(lbuf);
---
> snprintf(lbuf, sizeof(lbuf), " (%s, 0x%lx)\n", fp->f_type,
> (long)fp->f_size);
> if (pager_output(lbuf))
> break;
288c290,291
< sprintf(lbuf, "%s.%d ", mp->m_name, mp->m_version);
---
> snprintf(lbuf, sizeof(lbuf), "%s.%d ", mp->m_name,
> mp->m_version);
297c300,301
< sprintf(lbuf, " 0x%04x, 0x%lx\n", md->md_type, (long) md->md_size);
---
> snprintf(lbuf, sizeof(lbuf), " 0x%04x, 0x%lx\n",
> md->md_type, (long) md->md_size);
301a306,307
> if (ret)
> break;