summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <>2015-12-01 01:32:48 +0000
committermmcc <>2015-12-01 01:32:48 +0000
commitcab5331381011c297b4793dd3ddc4bb1a0287a05 (patch)
tree7366d81e644005861ea922d4ab0cdc786cc6d43a
parente581facf025826edacf17c56a90b3dcde9d749b2 (diff)
downloadopenbsd-cab5331381011c297b4793dd3ddc4bb1a0287a05.tar.gz
openbsd-cab5331381011c297b4793dd3ddc4bb1a0287a05.tar.bz2
openbsd-cab5331381011c297b4793dd3ddc4bb1a0287a05.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