I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
51 lines
1.5 KiB
Groff
51 lines
1.5 KiB
Groff
Index: display.c
|
|
===================================================================
|
|
RCS file: /mnt/ncvs/src/contrib/top/display.c,v
|
|
retrieving revision 1.4
|
|
retrieving revision 1.5
|
|
diff -u -r1.4 -r1.5
|
|
--- display.c 1999/01/09 20:20:33 1.4
|
|
+++ display.c 2000/10/04 23:34:16 1.5
|
|
@@ -829,7 +831,7 @@
|
|
register int i;
|
|
|
|
/* first, format the message */
|
|
- (void) sprintf(next_msg, msgfmt, a1, a2, a3);
|
|
+ (void) snprintf(next_msg, sizeof(next_msg), msgfmt, a1, a2, a3);
|
|
|
|
if (msglen > 0)
|
|
{
|
|
Index: top.c
|
|
===================================================================
|
|
RCS file: /mnt/ncvs/src/contrib/top/top.c,v
|
|
retrieving revision 1.4
|
|
retrieving revision 1.5
|
|
diff -u -r1.4 -r1.5
|
|
--- top.c 1999/01/09 20:20:34 1.4
|
|
+++ top.c 2000/10/04 23:34:16 1.5
|
|
@@ -807,7 +809,7 @@
|
|
{
|
|
if ((errmsg = kill_procs(tempbuf2)) != NULL)
|
|
{
|
|
- new_message(MT_standout, errmsg);
|
|
+ new_message(MT_standout, "%s", errmsg);
|
|
putchar('\r');
|
|
no_command = Yes;
|
|
}
|
|
Index: top.c
|
|
===================================================================
|
|
RCS file: /mnt/ncvs/src/contrib/top/top.c,v
|
|
retrieving revision 1.5
|
|
retrieving revision 1.6
|
|
diff -u -r1.5 -r1.6
|
|
--- top.c 2000/10/04 23:34:16 1.5
|
|
+++ top.c 2000/11/03 22:00:10 1.6
|
|
@@ -826,7 +826,7 @@
|
|
{
|
|
if ((errmsg = renice_procs(tempbuf2)) != NULL)
|
|
{
|
|
- new_message(MT_standout, errmsg);
|
|
+ new_message(MT_standout, "%s", errmsg);
|
|
putchar('\r');
|
|
no_command = Yes;
|
|
}
|