From c28afb19581b550bf02e148f953e3b239421e1ee Mon Sep 17 00:00:00 2001 From: Yuri Pankov Date: Tue, 20 Dec 2011 11:35:17 +0400 Subject: 1863 gcc compiled libsmb coredumps in trim_whitespace 1866 libsmbns is passing constant string to mktemp(3C) 1867 mktemp(3) gives bad advice in EXAMPLES section Reviewed by: Richard Lowe Reviewed by: Gordon Ross Approved by: Albert Lee --- usr/src/man/man3c/mktemp.3c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/src/man/man3c') diff --git a/usr/src/man/man3c/mktemp.3c b/usr/src/man/man3c/mktemp.3c index 2a280330cd..ea14551e0d 100644 --- a/usr/src/man/man3c/mktemp.3c +++ b/usr/src/man/man3c/mktemp.3c @@ -32,8 +32,8 @@ created for each unique \fItemplate\fR. .SH RETURN VALUES .sp .LP -The \fBmktemp()\fR function returns the pointer \fItemplate\fR. If a unique -name cannot be created, \fItemplate\fR points to a null string. +The \fBmktemp()\fR function returns a pointer to the \fItemplate\fR on success +and \fBNULL\fR if unique name cannot be created. .SH ERRORS .sp .LP @@ -52,7 +52,7 @@ pointer to the "template" string that contains the new filename. .nf #include \&... -char *template = "/tmp/fileXXXXXX"; +char template[] = "/tmp/fileXXXXXX"; char *ptr; ptr = mktemp(template); .fi -- cgit v1.2.3