summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-03-23 21:07:57 +0000
committermillert <millert@openbsd.org>1999-03-23 21:07:57 +0000
commitb7f7cf988a1cf204ef3f4896107bcba408556ff4 (patch)
tree45f0dc1b1c31eb997ceb104a24d926f5eacf8460
parentDon't bother calling nl() in init_display, just do the '\r' -> '\n' conversion (diff)
downloadwireguard-openbsd-b7f7cf988a1cf204ef3f4896107bcba408556ff4.tar.xz
wireguard-openbsd-b7f7cf988a1cf204ef3f4896107bcba408556ff4.zip
Clarify realloc return value
-rw-r--r--lib/libc/stdlib/malloc.37
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index f35c86ac48c..9edff6709c6 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.10 1998/11/17 23:41:43 aaron Exp $
+.\" $OpenBSD: malloc.3,v 1.11 1999/03/23 21:07:57 millert Exp $
.\"
.Dd August 27, 1996
.Dt MALLOC 3
@@ -101,8 +101,9 @@ The
.Fn realloc
function changes the size of the object pointed to by
.Fa ptr
-to the size specified by
-.Fa size .
+to
+.Fa size
+bytes and returns a pointer to the (possibly moved) object.
The contents of the object are unchanged up to the lesser
of the new and old sizes.
If the new size is larger, the value of the newly allocated portion