diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-29 06:04:26 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-29 06:04:26 +0000 |
commit | 0339972dd9c7ded02b0fb954b499fd942b918cad (patch) | |
tree | bd9e4b98316992071b898b6803ecd021fbd8d549 /sys | |
parent | 5abf6d12a5b292a484cb920b8911bf79a43bd9b7 (diff) | |
download | FreeBSD-src-0339972dd9c7ded02b0fb954b499fd942b918cad.zip FreeBSD-src-0339972dd9c7ded02b0fb954b499fd942b918cad.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/svr4/svr4_socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_socket.c b/sys/compat/svr4/svr4_socket.c index 1714bf1..3f3d7c5 100644 --- a/sys/compat/svr4/svr4_socket.c +++ b/sys/compat/svr4/svr4_socket.c @@ -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; |