From 43c55905ff6588897b2f4fe9ec260ec8d7d2fb4e Mon Sep 17 00:00:00 2001 From: lum Date: Thu, 8 Dec 2011 08:06:20 +0000 Subject: strdup and strndup both use malloc. Make this fact explicit. ok jmc@ --- lib/libc/string/strdup.3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/libc') 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 . -- cgit v1.2.3