summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2015-03-15 07:26:27 +0000
committerphessler <phessler@openbsd.org>2015-03-15 07:26:27 +0000
commitb5cb9a9b4f8c0be374021e463d65b146dbf47b0a (patch)
tree46b885226a3630d9c4c56f2f0b0d9d06df143216
parentUsing O_TRUNC with O_CREAT|O_EXCL is just confusing: fail if it exists, (diff)
downloadwireguard-openbsd-b5cb9a9b4f8c0be374021e463d65b146dbf47b0a.tar.xz
wireguard-openbsd-b5cb9a9b4f8c0be374021e463d65b146dbf47b0a.zip
fix for regression test for strtol(). it failed (the wrong kind of
fail), on 64-bit systems. tested on 64-bit (amd64) and 32-bit (sparc). OK claudio@ deraadt@
-rw-r--r--regress/lib/libc/strtol/strtoltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libc/strtol/strtoltest.c b/regress/lib/libc/strtol/strtoltest.c
index a90977a87d4..17b73340ad6 100644
--- a/regress/lib/libc/strtol/strtoltest.c
+++ b/regress/lib/libc/strtol/strtoltest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtoltest.c,v 1.2 2014/09/19 12:32:08 schwarze Exp $ */
+/* $OpenBSD: strtoltest.c,v 1.3 2015/03/15 07:26:27 phessler Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
*
@@ -42,7 +42,7 @@ struct strtol_test strtol_tests[] = {
{"-080000000", -2147483648L, '\0', 16, 0},
{"deadbeefdeadbeef", LONG_MAX, '\0', 16, ERANGE},
{"deadzbeef", 57005L, 'z', 16, 0},
- {"-quitebig", LONG_MIN, '\0', 32, ERANGE},
+ {"-quitebigmchuge", LONG_MIN, '\0', 32, ERANGE},
{"zzz", 46655L, '\0', 36, 0},
{"1234567890", 0L, '1', 37, EINVAL},
{"1234567890", 0L, '1', 123, EINVAL},