Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2009 06:04:26 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193015 - head/sys/compat/svr4
Message-ID:  <200905290604.n4T64QLb061463@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905290604.n4T64QLb061463>