summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libc/strlcat/strlcattest.c4
-rw-r--r--regress/lib/libc/strlcpy/strlcpytest.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libc/strlcat/strlcattest.c b/regress/lib/libc/strlcat/strlcattest.c
index 00a9212eb5e..a86fbed8434 100644
--- a/regress/lib/libc/strlcat/strlcattest.c
+++ b/regress/lib/libc/strlcat/strlcattest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlcattest.c,v 1.4 2021/09/01 09:26:32 jasper Exp $ */
+/* $OpenBSD: strlcattest.c,v 1.5 2021/09/27 19:33:58 millert Exp $ */
/*
* Copyright (c) 2014 Todd C. Miller <millert@openbsd.org>
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
char *buf, *cp, *ep;
struct sigaction sa;
size_t len, bufsize;
- int failures = 0;
+ volatile int failures = 0;
bufsize = getpagesize(); /* trigger guard pages easily */
buf = malloc(bufsize);
diff --git a/regress/lib/libc/strlcpy/strlcpytest.c b/regress/lib/libc/strlcpy/strlcpytest.c
index 8f1d12dbce6..ebc1c56a451 100644
--- a/regress/lib/libc/strlcpy/strlcpytest.c
+++ b/regress/lib/libc/strlcpy/strlcpytest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlcpytest.c,v 1.4 2021/09/01 09:26:32 jasper Exp $ */
+/* $OpenBSD: strlcpytest.c,v 1.5 2021/09/27 19:33:58 millert Exp $ */
/*
* Copyright (c) 2014 Todd C. Miller <millert@openbsd.org>
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
char *buf, *buf2, *cp, *ep;
struct sigaction sa;
size_t len, bufsize;
- int failures = 0;
+ volatile int failures = 0;
bufsize = getpagesize(); /* trigger guard pages easily */
buf = malloc(bufsize);