force new version; tty driver fixes and up MOL patch
[unix-history] / usr / src / sys / kern / kern_proc.c
index 1b752ac..edae387 100644 (file)
@@ -1,4 +1,4 @@
-/*     kern_proc.c     3.16    %G%     */
+/*     kern_proc.c     3.20    %G%     */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -17,6 +17,7 @@
 #include "../h/vm.h"
 #include "../h/text.h"
 #include "../h/psl.h"
 #include "../h/vm.h"
 #include "../h/text.h"
 #include "../h/psl.h"
+#include "../h/vlimit.h"
 
 /*
  * exec system call, with and without environments.
 
 /*
  * exec system call, with and without environments.
@@ -685,7 +686,7 @@ sbreak()
        if (n < 0)
                n = 0;
        d = clrnd(n - u.u_dsize);
        if (n < 0)
                n = 0;
        d = clrnd(n - u.u_dsize);
-       if (u.u_dsize+d > u.u_limit[LIM_DATA]) {
+       if (ctob(u.u_dsize+d) > u.u_limit[LIM_DATA]) {
                u.u_error = ENOMEM;
                return;
        }
                u.u_error = ENOMEM;
                return;
        }