Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/rump/rumpvfs Use a larger array to avoid overflow.
details: https://anonhg.NetBSD.org/src/rev/38bc0a7430f9
branches: trunk
changeset: 759675:38bc0a7430f9
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Dec 14 20:09:43 2010 +0000
description:
Use a larger array to avoid overflow.
from Piotr Meyer
diffstat:
tests/rump/rumpvfs/t_p2kifs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r f6106afbf7c8 -r 38bc0a7430f9 tests/rump/rumpvfs/t_p2kifs.c
--- a/tests/rump/rumpvfs/t_p2kifs.c Tue Dec 14 19:52:14 2010 +0000
+++ b/tests/rump/rumpvfs/t_p2kifs.c Tue Dec 14 20:09:43 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_p2kifs.c,v 1.1 2010/11/30 16:16:33 pooka Exp $ */
+/* $NetBSD: t_p2kifs.c,v 1.2 2010/12/14 20:09:43 pooka Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
ATF_TC_BODY(makecn, tc)
{
struct componentname *cn;
- char pathstr[] = TESTFILE;
+ char pathstr[MAXPATHLEN] = TESTFILE;
struct vnode *vp;
extern struct vnode *rumpns_rootvnode;
Home |
Main Index |
Thread Index |
Old Index