diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-01 01:32:49 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-01 01:32:49 +0000 |
commit | e09b6d52a31351c8d0d18ae403494c05fa777e7c (patch) | |
tree | a83fd19b3e01c0cf4efc37508e6ef4556b2f9047 /lib/libc/string | |
parent | 85f2730a9f96a84343f01043227b077f3bc21954 (diff) |
Phrase allocation failure more clearly. ok deraadt@
Diffstat (limited to 'lib/libc/string')
-rw-r--r-- | lib/libc/string/strdup.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3 index 42324e1fd97..283f3bc0ea1 100644 --- a/lib/libc/string/strdup.3 +++ b/lib/libc/string/strdup.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strdup.3,v 1.21 2014/10/11 14:40:42 schwarze Exp $ +.\" $OpenBSD: strdup.3,v 1.22 2015/12/01 01:32:48 mmcc Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)strdup.3 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: October 11 2014 $ +.Dd $Mdocdate: December 1 2015 $ .Dt STRDUP 3 .Os .Sh NAME @@ -61,7 +61,7 @@ characters from .Fa s . The resulting string is always NUL-terminated. .Pp -If insufficient memory is available, +If the memory allocation fails, .Dv NULL is returned. .Sh EXAMPLES |