diff options
author | mmcc <> | 2015-12-01 01:32:48 +0000 |
---|---|---|
committer | mmcc <> | 2015-12-01 01:32:48 +0000 |
commit | cab5331381011c297b4793dd3ddc4bb1a0287a05 (patch) | |
tree | 7366d81e644005861ea922d4ab0cdc786cc6d43a | |
parent | e581facf025826edacf17c56a90b3dcde9d749b2 (diff) | |
download | openbsd-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.3 | 6 |
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 . |
62 | The resulting string is always NUL-terminated. | 62 | The resulting string is always NUL-terminated. |
63 | .Pp | 63 | .Pp |
64 | If insufficient memory is available, | 64 | If the memory allocation fails, |
65 | .Dv NULL | 65 | .Dv NULL |
66 | is returned. | 66 | is returned. |
67 | .Sh EXAMPLES | 67 | .Sh EXAMPLES |