aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/mmap.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 4c36e54..9481864 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-14 Jason Tishler <jason@tishler.net>
+
+ * mmap.cc (mprotect): Add missing break.
+
2003-02-13 Christopher Faylor <cgf@redhat.com>
* exceptions.cc (try_to_debug): Don't reset priority when returning
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 79907eb..cb78e2f 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -909,6 +909,7 @@ mprotect (caddr_t addr, size_t len, int prot)
break;
case PROT_READ:
new_prot = PAGE_READONLY;
+ break;
case PROT_EXEC:
new_prot = PAGE_EXECUTE;
break;