Module Name: src
Committed By: christos
Date: Sat Jun 27 15:49:30 UTC 2020
Modified Files:
src/sys/compat/sys: mount.h
Log Message:
Ignore the supplied size, and always use the argument size that we know.
Found by maxv@
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/compat/sys/mount.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/mount.h
diff -u src/sys/compat/sys/mount.h:1.12 src/sys/compat/sys/mount.h:1.13
--- src/sys/compat/sys/mount.h:1.12 Sat Jun 27 03:00:43 2020
+++ src/sys/compat/sys/mount.h Sat Jun 27 11:49:30 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.h,v 1.12 2020/06/27 07:00:43 maxv Exp $ */
+/* $NetBSD: mount.h,v 1.13 2020/06/27 15:49:30 christos Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@@ -141,7 +141,7 @@ statvfs_to_statfs12_copy(const void *vs,
int error;
statvfs_to_statfs12(vs, s12);
- error = copyout(s12, vs12, l);
+ error = copyout(s12, vs12, sizeof(*s12));
STATVFSBUF_PUT(s12);
return error;