diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2011-12-20 11:35:17 +0400 |
---|---|---|
committer | Yuri Pankov <yuri.pankov@nexenta.com> | 2011-12-20 11:35:17 +0400 |
commit | c28afb19581b550bf02e148f953e3b239421e1ee (patch) | |
tree | 2d39f7b9d5281be20c8b3de182397a2d3a06dd10 /usr/src/man/man3c | |
parent | 488bda50d513985dcc41e8aa180a296842c262bf (diff) | |
download | illumos-joyent-c28afb19581b550bf02e148f953e3b239421e1ee.tar.gz |
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 <richlowe@richlowe.net>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Approved by: Albert Lee <trisk@nexenta.com>
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r-- | usr/src/man/man3c/mktemp.3c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h> \&... -char *template = "/tmp/fileXXXXXX"; +char template[] = "/tmp/fileXXXXXX"; char *ptr; ptr = mktemp(template); .fi |