]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r268985, r269001:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Jul 2014 03:24:00 +0000 (03:24 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Jul 2014 03:24:00 +0000 (03:24 +0000)
commit5aecf0303018bc13c097b252b21b2456c585557e
tree662d996ede51e7070e29e2e5c6704042e3c1c92e
parent37437802e9396a0a14a5901eb47619fe448573b2
MFC r268985, r269001:
Avoid possible cast degradation.

Assign iov_len first, avoiding the cast to uio_resid
(int in stdio) from degrading the value.

Small cosmetical fix while here.

git-svn-id: svn://svn.freebsd.org/base/stable/10@269085 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdio/fputs.c
lib/libc/stdio/fputws.c
lib/libc/stdio/puts.c
lib/libc/stdio/putw.c