Module Name: src
Committed By: christos
Date: Fri Jul 3 19:00:01 UTC 2020
Modified Files:
src/sys/compat/sys: statvfs.h
Log Message:
sync with mount.h, always use the structure size.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/sys/statvfs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/sys/statvfs.h
diff -u src/sys/compat/sys/statvfs.h:1.2 src/sys/compat/sys/statvfs.h:1.3
--- src/sys/compat/sys/statvfs.h:1.2 Fri Jul 3 10:08:53 2020
+++ src/sys/compat/sys/statvfs.h Fri Jul 3 15:00:01 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: statvfs.h,v 1.2 2020/07/03 14:08:53 christos Exp $ */
+/* $NetBSD: statvfs.h,v 1.3 2020/07/03 19:00:01 christos Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@ statvfs_to_statvfs90_copy(const void *vs
int error;
statvfs_to_statvfs90(vs, s90);
- error = copyout(s90, vs90, l);
+ error = copyout(s90, vs90, sizeof(*s90));
kmem_free(s90, sizeof(*s90));
return error;