Skip to content

Commit

Permalink
14107 '\0' not properly escaped in some manual pages
Browse files Browse the repository at this point in the history
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
rmustacc committed Sep 25, 2021
1 parent 883bdef commit 2792091
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions usr/src/man/man1/ctfdump.1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.\"
.\" Copyright 2018, Joyent, Inc.
.\"
.Dd December 28, 2020
.Dd September 20, 2021
.Dt CTFDUMP 1
.Os
.Sh NAME
Expand Down Expand Up @@ -344,7 +344,7 @@ then the
string's value is displayed.
Note the following examples:
.Bd -literal
[0] \0
[0] \e0
[1] joyent_20151001T070028Z
[25] char
[30] long
Expand Down
4 changes: 2 additions & 2 deletions usr/src/man/man3c/mbrtoc16.3c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.\"
.\" Copyright 2020 Robert Mustacchi
.\"
.Dd April 23, 2020
.Dd September 20, 2021
.Dt MBRTOC16 3C
.Os
.Sh NAME
Expand Down Expand Up @@ -323,7 +323,7 @@ main(void)
size_t ret;
const char *uchar_str = "\exf0\ex9f\ex92\exa9";

(void) memset(&mbs, '\0', sizeof (mbs));
(void) memset(&mbs, 0, sizeof (mbs));
(void) setlocale(LC_CTYPE, "en_US.UTF-8");
ret = mbrtoc16(&first, uchar_str, strlen(uchar_str), &mbs);
if (ret != strlen(uchar_str)) {
Expand Down

0 comments on commit 2792091

Please sign in to comment.