diff options
author | lum <lum@cvs.openbsd.org> | 2011-12-08 08:06:20 +0000 |
---|---|---|
committer | lum <lum@cvs.openbsd.org> | 2011-12-08 08:06:20 +0000 |
commit | 43c55905ff6588897b2f4fe9ec260ec8d7d2fb4e (patch) | |
tree | 002584b9eb3ad0cc2fd32ea556ac6ddb0b035929 /lib/libc | |
parent | 74f8f0181ddbf0291e3d9d6b263d9a796309e1cb (diff) |
strdup and strndup both use malloc. Make this fact explicit.
ok jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/string/strdup.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3 index 02d5666a9c2..45a7bd18264 100644 --- a/lib/libc/string/strdup.3 +++ b/lib/libc/string/strdup.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strdup.3,v 1.18 2011/07/25 00:38:53 schwarze Exp $ +.\" $OpenBSD: strdup.3,v 1.19 2011/12/08 08:06:19 lum 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: July 25 2011 $ +.Dd $Mdocdate: December 8 2011 $ .Dt STRDUP 3 .Os .Sh NAME @@ -79,7 +79,9 @@ if (p == NULL) .Sh ERRORS The .Fn strdup -function may fail and set the external variable +and +.Fn strndup +functions may fail and set the external variable .Va errno for any of the errors specified for the library function .Xr malloc 3 . |