aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeonghun Lim <wariua@gmail.com>2011-09-08 16:58:27 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2011-09-16 07:00:45 +0200
commitda2336b314d989baa4ba9d0863a6affb6e9092d4 (patch)
treef94ae176a6d5303338a1469b0ad5f70403767899
parentf8e32007b0bb3f3e891db78f39a632641924afc6 (diff)
downloadman-pages-da2336b314d989baa4ba9d0863a6affb6e9092d4.tar.gz
mprotect.2: fix off-by-one error in a memory range
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/mprotect.22
1 files changed, 1 insertions, 1 deletions
diff --git a/man2/mprotect.2 b/man2/mprotect.2
index 8af7d3e8e6..da08367bae 100644
--- a/man2/mprotect.2
+++ b/man2/mprotect.2
@@ -98,7 +98,7 @@ Internal kernel structures could not be allocated.
.B ENOMEM
Addresses in the range
.RI [ addr ,
-.IR addr + len ]
+.IR addr + len \-1]
are invalid for the address space of the process,
or specify one or more pages that are not mapped.
(Before kernel 2.4.19, the error