summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c
diff options
context:
space:
mode:
authorotto <>2023-05-09 19:07:37 +0000
committerotto <>2023-05-09 19:07:37 +0000
commit6e7c77af78e6fdcf852347ebed6370240e6fa7aa (patch)
tree6cb62b6b8f31d3b4b254ddad36708e3856d837ef /src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c
parentfb9b7d4eb905de3a6f71e6b7404ea3838bd9211f (diff)
downloadopenbsd-6e7c77af78e6fdcf852347ebed6370240e6fa7aa.tar.gz
openbsd-6e7c77af78e6fdcf852347ebed6370240e6fa7aa.tar.bz2
openbsd-6e7c77af78e6fdcf852347ebed6370240e6fa7aa.zip
Make malloc tests that set flags more robust against the user also
having flags set.
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c')
-rw-r--r--src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c b/src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c
index e2ac6dd79a..e0efb6ebf3 100644
--- a/src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c
+++ b/src/regress/lib/libc/malloc/malloc_errs/malloc_errs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: malloc_errs.c,v 1.1 2023/05/08 11:12:44 otto Exp $ */ 1/* $OpenBSD: malloc_errs.c,v 1.2 2023/05/09 19:07:37 otto Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2023 Otto Moerbeek <otto@drijf.net>
4 * 4 *
@@ -264,7 +264,7 @@ int main(int argc, char *argv[])
264 pid = fork(); 264 pid = fork();
265 switch (pid) { 265 switch (pid) {
266 case 0: 266 case 0:
267 snprintf(options, sizeof(options), "cfjgu%s", tests[i].flags); 267 snprintf(options, sizeof(options), "us%s", tests[i].flags);
268 snprintf(num, sizeof(num), "%d", i); 268 snprintf(num, sizeof(num), "%d", i);
269 execl(argv[0], argv[0], num, options, NULL); 269 execl(argv[0], argv[0], num, options, NULL);
270 err(1, "exec"); 270 err(1, "exec");