]> diplodocus.org Git - nmh/commitdiff
mhbuild.man: Avoid using format-free printf(3) in example.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 30 Oct 2017 19:52:11 +0000 (19:52 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 30 Oct 2017 19:52:11 +0000 (19:52 +0000)
It pops up in searches for printf()s that could be fputs(),
and as printf() it doesn't output the trailing `\n' to end the line.
Replace with puts().  Lowercase Kernighan's message, as he wrote it.

man/mhbuild.man

index 5fdf7c2..8e87209 100644 (file)
@@ -346,7 +346,7 @@ directives, without causing errors:
 .nf
 #off
 #include <stdio.h>
-printf("Hello, World!");
+puts("hello, world!");
 #pop
 .fi
 .RE