summaryrefslogtreecommitdiffstats
path: root/lib/libutil/fmt_scaled.3
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-10-19 18:48:11 +0000
committerderaadt <deraadt@openbsd.org>2005-10-19 18:48:11 +0000
commit0cbef5eaab3b58d1178e3e61825cf570f152544d (patch)
treeaf4d1578d0c498983ad5b29ef8ecb3ef6777ec72 /lib/libutil/fmt_scaled.3
parentadd missing header for HISTORY section; ok jmc awhile ago (diff)
downloadwireguard-openbsd-0cbef5eaab3b58d1178e3e61825cf570f152544d.tar.xz
wireguard-openbsd-0cbef5eaab3b58d1178e3e61825cf570f152544d.zip
library routines should not be checking for NULL pointers passed in,
and then setting errno to EFAULT. that is balony programming! they should keep stumbling along to purposely create a crash, so that the programmer stops doing that kind of stupid crap. ok otto
Diffstat (limited to 'lib/libutil/fmt_scaled.3')
-rw-r--r--lib/libutil/fmt_scaled.37
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libutil/fmt_scaled.3 b/lib/libutil/fmt_scaled.3
index 6a63675d28a..33a3b8a4811 100644
--- a/lib/libutil/fmt_scaled.3
+++ b/lib/libutil/fmt_scaled.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fmt_scaled.3,v 1.2 2003/06/02 11:37:27 jmc Exp $
+.\" $OpenBSD: fmt_scaled.3,v 1.3 2005/10/19 18:48:11 deraadt Exp $
.\" Copyright (c) 2001, 2003 Ian Darwin. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -61,7 +61,7 @@ The
buffer must be allocated with at least
.Dv FMT_SCALED_STRSIZE
bytes.
-The result will be left-justified in the given space, and null-terminated.
+The result will be left-justified in the given space, and NUL-terminated.
.Sh RETURN VALUES
The
.Fn scan_scaled
@@ -74,9 +74,6 @@ In case of error, they return \-1, leave
as is, and set
.Va errno
to one of the following values:
-.Dv EFAULT
-if an input pointer is
-.Dv NULL .
.Dv ERANGE
if the input string represents a number that is too large to represent.
.Dv EINVAL