git: soopt_from_kbuf: Use szmin(), since both len and sopt_valsize is size_t
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Sep 4 21:04:46 PDT 2009
commit 231d276bdf26d985fb0bf755300169842e233399
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sat Sep 5 11:52:32 2009 +0800
soopt_from_kbuf: Use szmin(), since both len and sopt_valsize is size_t
Mainly to avoid integer truncation on 64bit platform.
Reminded-by: dillon@
Summary of changes:
sys/kern/uipc_socket.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/231d276bdf26d985fb0bf755300169842e233399
--
DragonFly BSD source repository
More information about the Commits
mailing list