Module Name:    src
Committed By:   christos
Date:           Fri Jan 13 22:45:15 UTC 2017

Modified Files:
        src/sys/compat/linux/common: linux_misc.c

Log Message:
no namlen on linux


To generate a diff of this commit:
cvs rdiff -u -r1.235 -r1.236 src/sys/compat/linux/common/linux_misc.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/compat/linux/common/linux_misc.c
diff -u src/sys/compat/linux/common/linux_misc.c:1.235 src/sys/compat/linux/common/linux_misc.c:1.236
--- src/sys/compat/linux/common/linux_misc.c:1.235	Fri Jan 13 15:24:37 2017
+++ src/sys/compat/linux/common/linux_misc.c	Fri Jan 13 17:45:15 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_misc.c,v 1.235 2017/01/13 20:24:37 christos Exp $	*/
+/*	$NetBSD: linux_misc.c,v 1.236 2017/01/13 22:45:15 christos Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.235 2017/01/13 20:24:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.236 2017/01/13 22:45:15 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -788,7 +788,7 @@ again:
 			*((char *)&idb + idb.d_reclen - 1) = bdp->d_type;
 		}
 		memcpy(idb.d_name, bdp->d_name,
-		    MIN(sizeof(idb.d_name), idb.d_namlen));
+		    MIN(sizeof(idb.d_name), bdp->d_namlen));
 		if ((error = copyout((void *)&idb, outp, linux_reclen)))
 			goto out;
 		/* advance past this real entry */

Reply via email to