artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9dda2
)
Fix the calculation of the maximum stack size in the command line
author
bluhm
<bluhm@openbsd.org>
Fri, 21 May 2021 20:42:21 +0000
(20:42 +0000)
committer
bluhm
<bluhm@openbsd.org>
Fri, 21 May 2021 20:42:21 +0000
(20:42 +0000)
option -s.
regress/sys/kern/fork-exit/fork-exit.c
patch
|
blob
|
history
diff --git
a/regress/sys/kern/fork-exit/fork-exit.c
b/regress/sys/kern/fork-exit/fork-exit.c
index
6d52ade
..
6295b00
100644
(file)
--- a/
regress/sys/kern/fork-exit/fork-exit.c
+++ b/
regress/sys/kern/fork-exit/fork-exit.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fork-exit.c,v 1.
4 2021/05/21 20:21:10
bluhm Exp $ */
+/* $OpenBSD: fork-exit.c,v 1.
5 2021/05/21 20:42:21
bluhm Exp $ */
/*
* Copyright (c) 2021 Alexander Bluhm <bluhm@openbsd.org>
@@
-236,7
+236,7
@@
main(int argc, char *argv[])
break;
case 's':
stack = strtonum(optarg, 0,
- (INT_MAX
- 2) / (4096 + 32)
, &errstr);
+ (INT_MAX
/ (4096 + 32)) - 2
, &errstr);
if (errstr != NULL)
errx(1, "number of stack allocations is %s: %s",
errstr, optarg);