svn commit: r332439 - head/lib/libc/gen
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Thu Apr 12 17:05:28 UTC 2018
Author: gonzo
Date: Thu Apr 12 17:05:27 2018
New Revision: 332439
URL: https://svnweb.freebsd.org/changeset/base/332439
Log:
Fix quotes in the example code in syslog(3) BUGS section
mdoc treats verbatim quotes in .Dl as a string delimiter and does
not pass them to the rendered output. Use special char \*q to specify
double quote
PR: 216755
MFC after: 3 days
Modified:
head/lib/libc/gen/syslog.3
Modified: head/lib/libc/gen/syslog.3
==============================================================================
--- head/lib/libc/gen/syslog.3 Thu Apr 12 17:00:36 2018 (r332438)
+++ head/lib/libc/gen/syslog.3 Thu Apr 12 17:05:27 2018 (r332439)
@@ -295,4 +295,4 @@ for later interpolation by
.Pp
Always use the proper secure idiom:
.Pp
-.Dl syslog(priority, "%s", string);
+.Dl syslog(priority, \*q%s\*q, string);
More information about the svn-src-head
mailing list