summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/mktemp.3
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2003-07-02 06:36:39 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2003-07-02 06:36:39 +0000
commit7bc06fbad5ac90fe942853f77f6598174f56e4f3 (patch)
treeff2c79be3f1f3896ccdb0c5c7d5aa3adb6841802 /lib/libc/stdio/mktemp.3
parentf753a2bfbeef46c836e9f1d3eee4af888730ca8c (diff)
6 X's -> 10 X's in all examples, per avsm's idea, millert agrees
Diffstat (limited to 'lib/libc/stdio/mktemp.3')
-rw-r--r--lib/libc/stdio/mktemp.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3
index 43d718e0145..3f0996d4159 100644
--- a/lib/libc/stdio/mktemp.3
+++ b/lib/libc/stdio/mktemp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mktemp.3,v 1.31 2003/06/02 20:18:37 millert Exp $
+.\" $OpenBSD: mktemp.3,v 1.32 2003/07/02 06:36:38 pvalchev Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -93,7 +93,7 @@ function acts the same as
.Fn mkstemp ,
except it permits a suffix to exist in the template.
The template should be of the form
-.Pa /tmp/tmpXXXXXXsuffix .
+.Pa /tmp/tmpXXXXXXXXXXsuffix .
.Fn mkstemps
is told the length of the suffix string, i.e., strlen("suffix");
.Pp
@@ -128,7 +128,7 @@ For instance, code of this form:
char sfn[15] = "";
FILE *sfp;
-strlcpy(sfn, "/tmp/ed.XXXXXX", sizeof sfn);
+strlcpy(sfn, "/tmp/ed.XXXXXXXXXX", sizeof sfn);
if (mktemp(sfn) == NULL || (sfp = fopen(sfn, "w+")) == NULL) {
fprintf(stderr, "%s: %s\en", sfn, strerror(errno));
return (NULL);
@@ -142,7 +142,7 @@ char sfn[15] = "";
FILE *sfp;
int fd = -1;
-strlcpy(sfn, "/tmp/ed.XXXXXX", sizeof sfn);
+strlcpy(sfn, "/tmp/ed.XXXXXXXXXX", sizeof sfn);
if ((fd = mkstemp(sfn)) == -1 ||
(sfp = fdopen(fd, "w+")) == NULL) {
if (fd != -1) {