Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-0]: src/sys/fs/v7fs Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/9d6bd9687bea
branches: netbsd-6-0
changeset: 774722:9d6bd9687bea
user: riz <riz%NetBSD.org@localhost>
date: Sun Dec 16 18:24:29 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 0a38412aa045 -r 9d6bd9687bea sys/fs/v7fs/v7fs_file.c
--- a/sys/fs/v7fs/v7fs_file.c Sun Dec 16 18:20:26 2012 +0000
+++ b/sys/fs/v7fs/v7fs_file.c Sun Dec 16 18:24:29 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.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 @@
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