+2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
+
2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
* posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
check that we support at least the minimum required. */
#define MAX_ATEXIT 32
-static char crumbs[MAX_ATEXIT];
+/* Arbitrary sequence matching current registrations. */
+const char expected[] = "00000000000000000000000003021121130211";
+
+static char crumbs[sizeof (expected)];
static int next_slot = 0;
/* Helper: flush stdout and _exit. */
static void
fn_final (void)
{
- /* Arbitrary sequence matching current registrations. */
- const char expected[] = "00000000000000000000000003021121130211";
-
if (strcmp (crumbs, expected) == 0)
_exit_with_flush (0);