svn commit: r193015 - head/sys/compat/svr4

Xin LI delphij at FreeBSD.org
Fri May 29 06:04:27 UTC 2009


Author: delphij
Date: Fri May 29 06:04:26 2009
New Revision: 193015
URL: http://svn.freebsd.org/changeset/base/193015

Log:
  copyinstr(9) takes parameter 'len' as a size_t *, not int *.
  
  PR:		kern/91293
  Submitted by:	"Pedro f. Giffuni" <giffunip asme org>
  Obtained from:	NetBSD

Modified:
  head/sys/compat/svr4/svr4_socket.c

Modified: head/sys/compat/svr4/svr4_socket.c
==============================================================================
--- head/sys/compat/svr4/svr4_socket.c	Fri May 29 05:58:46 2009	(r193014)
+++ head/sys/compat/svr4/svr4_socket.c	Fri May 29 06:04:26 2009	(r193015)
@@ -120,7 +120,8 @@ svr4_add_socket(td, path, st)
 	struct stat *st;
 {
 	struct svr4_sockcache_entry *e;
-	int len, error;
+	size_t len;
+	int error;
 
 	e = malloc(sizeof(*e), M_TEMP, M_WAITOK);
 	e->cookie = NULL;


More information about the svn-src-head mailing list