Module Name:    src
Committed By:   riz
Date:           Sun Dec 16 18:24:29 UTC 2012

Modified Files:
        src/sys/fs/v7fs [netbsd-6-0]: v7fs_file.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #748):
        sys/fs/v7fs/v7fs_file.c: revision 1.5
Fix off by one error.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.12.1 src/sys/fs/v7fs/v7fs_file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/v7fs/v7fs_file.c
diff -u src/sys/fs/v7fs/v7fs_file.c:1.3 src/sys/fs/v7fs/v7fs_file.c:1.3.12.1
--- src/sys/fs/v7fs/v7fs_file.c:1.3	Sat Jul 30 03:51:53 2011
+++ src/sys/fs/v7fs/v7fs_file.c	Sun Dec 16 18:24:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: v7fs_file.c,v 1.3 2011/07/30 03:51:53 uch Exp $	*/
+/*	$NetBSD: v7fs_file.c,v 1.3.12.1 2012/12/16 18:24:29 riz Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_file.c,v 1.3 2011/07/30 03:51:53 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_file.c,v 1.3.12.1 2012/12/16 18:24:29 riz Exp $");
 #if defined _KERNEL_OPT
 #include "opt_v7fs.h"
 #endif
@@ -77,7 +77,7 @@ v7fs_file_lookup_by_name(struct v7fs_sel
 
 	if ((q = strchr(name, '/'))) {
 		/* Zap following path. */
-		len = MIN(V7FS_NAME_MAX + 1, q - name);
+		len = MIN(V7FS_NAME_MAX, q - name);
 		memcpy(filename, name, len);
 		filename[len] = '\0';	/* '/' -> '\0' */
 	} else {

Reply via email to