summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <>2015-12-01 01:32:48 +0000
committermmcc <>2015-12-01 01:32:48 +0000
commit804edc7a038c9984df79ff9081c71bc93e09b18f (patch)
tree7366d81e644005861ea922d4ab0cdc786cc6d43a
parentc399898c48fb57be706b04549e4dc7082164a5f9 (diff)
downloadopenbsd-804edc7a038c9984df79ff9081c71bc93e09b18f.tar.gz
openbsd-804edc7a038c9984df79ff9081c71bc93e09b18f.tar.bz2
openbsd-804edc7a038c9984df79ff9081c71bc93e09b18f.zip
Phrase allocation failure more clearly. ok deraadt@
-rw-r--r--src/lib/libc/string/strdup.36
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3
index 42324e1fd9..283f3bc0ea 100644
--- a/src/lib/libc/string/strdup.3
+++ b/src/lib/libc/string/strdup.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strdup.3,v 1.21 2014/10/11 14:40:42 schwarze Exp $ 1.\" $OpenBSD: strdup.3,v 1.22 2015/12/01 01:32:48 mmcc Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
29.\" 29.\"
30.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93 30.\" @(#)strdup.3 8.1 (Berkeley) 6/9/93
31.\" 31.\"
32.Dd $Mdocdate: October 11 2014 $ 32.Dd $Mdocdate: December 1 2015 $
33.Dt STRDUP 3 33.Dt STRDUP 3
34.Os 34.Os
35.Sh NAME 35.Sh NAME
@@ -61,7 +61,7 @@ characters from
61.Fa s . 61.Fa s .
62The resulting string is always NUL-terminated. 62The resulting string is always NUL-terminated.
63.Pp 63.Pp
64If insufficient memory is available, 64If the memory allocation fails,
65.Dv NULL 65.Dv NULL
66is returned. 66is returned.
67.Sh EXAMPLES 67.Sh EXAMPLES