Module Name: src
Committed By: pooka
Date: Tue Dec 14 20:09:43 UTC 2010
Modified Files:
src/tests/rump/rumpvfs: t_p2kifs.c
Log Message:
Use a larger array to avoid overflow.
from Piotr Meyer
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/rump/rumpvfs/t_p2kifs.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/rump/rumpvfs/t_p2kifs.c
diff -u src/tests/rump/rumpvfs/t_p2kifs.c:1.1 src/tests/rump/rumpvfs/t_p2kifs.c:1.2
--- src/tests/rump/rumpvfs/t_p2kifs.c:1.1 Tue Nov 30 16:16:33 2010
+++ src/tests/rump/rumpvfs/t_p2kifs.c Tue Dec 14 20:09:43 2010
@@ -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;