Module Name: src
Committed By: martin
Date: Sat Jan 15 20:16:58 UTC 2011
Modified Files:
src/tests/fs/tmpfs: h_tools.c
Log Message:
Fix off by one that made most of these tests die with a bus error in the
sparc64 runs.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/fs/tmpfs/h_tools.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/fs/tmpfs/h_tools.c
diff -u src/tests/fs/tmpfs/h_tools.c:1.2 src/tests/fs/tmpfs/h_tools.c:1.3
--- src/tests/fs/tmpfs/h_tools.c:1.2 Mon Apr 28 20:24:12 2008
+++ src/tests/fs/tmpfs/h_tools.c Sat Jan 15 20:16:57 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: h_tools.c,v 1.2 2008/04/28 20:24:12 martin Exp $ */
+/* $NetBSD: h_tools.c,v 1.3 2011/01/15 20:16:57 martin Exp $ */
/*
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
argc--;
argv++;
- changes = malloc(sizeof(struct kevent) * (argc - 1));
+ changes = malloc(sizeof(struct kevent) * argc);
if (changes == NULL)
errx(EXIT_FAILURE, "not enough memory");