Module Name: src
Committed By: christos
Date: Sat Dec 19 01:18:00 UTC 2015
Modified Files:
src/sys/fs/udf: udf_subr.c
Log Message:
PR/50571: David Binderman: src/sys/fs/udf/udf_subr.c:6465: obvious
performance tidyup
To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/sys/fs/udf/udf_subr.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/udf/udf_subr.c
diff -u src/sys/fs/udf/udf_subr.c:1.132 src/sys/fs/udf/udf_subr.c:1.133
--- src/sys/fs/udf/udf_subr.c:1.132 Mon Aug 24 04:31:56 2015
+++ src/sys/fs/udf/udf_subr.c Fri Dec 18 20:18:00 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.132 2015/08/24 08:31:56 hannken Exp $ */
+/* $NetBSD: udf_subr.c,v 1.133 2015/12/19 01:18:00 christos Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.132 2015/08/24 08:31:56 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.133 2015/12/19 01:18:00 christos Exp $");
#endif /* not lint */
@@ -6462,8 +6462,8 @@ udf_read_internal(struct udf_node *node,
assert(inflen < sector_size);
/* copy out info */
- memset(blob, 0, sector_size);
memcpy(blob, pos, inflen);
+ memset(&blob[inflen] 0, sector_size - inflen);
return 0;
}