Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf PR/50571: David Binderman: src/sys/fs/udf/udf_sub...



details:   https://anonhg.NetBSD.org/src/rev/4b2a44b206a7
branches:  trunk
changeset: 812512:4b2a44b206a7
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 19 01:18:00 2015 +0000

description:
PR/50571: David Binderman: src/sys/fs/udf/udf_subr.c:6465: obvious
performance tidyup

diffstat:

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

diffs (28 lines):

diff -r b9c62305af30 -r 4b2a44b206a7 sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c     Sat Dec 19 01:10:31 2015 +0000
+++ b/sys/fs/udf/udf_subr.c     Sat Dec 19 01:18:00 2015 +0000
@@ -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 @@
        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;
 }



Home | Main Index | Thread Index | Old Index