Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/sys/fs/v7fs Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/27de5c85a329
branches:  netbsd-6
changeset: 775582:27de5c85a329
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Dec 16 18:24:18 2012 +0000

description:
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.

diffstat:

 sys/fs/v7fs/v7fs_file.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3f32c5bcdbb1 -r 27de5c85a329 sys/fs/v7fs/v7fs_file.c
--- a/sys/fs/v7fs/v7fs_file.c   Sun Dec 16 18:22:30 2012 +0000
+++ b/sys/fs/v7fs/v7fs_file.c   Sun Dec 16 18:24:18 2012 +0000
@@ -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.8.1 2012/12/16 18:24:18 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.8.1 2012/12/16 18:24:18 riz Exp $");
 #if defined _KERNEL_OPT
 #include "opt_v7fs.h"
 #endif
@@ -77,7 +77,7 @@
 
        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 {



Home | Main Index | Thread Index | Old Index