]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r268985, r269001:
authorpfg <pfg@FreeBSD.org>
Fri, 25 Jul 2014 03:24:00 +0000 (03:24 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 25 Jul 2014 03:24:00 +0000 (03:24 +0000)
commit414a4cb93173e7abba9c0ff6950044c5254370d1
tree662d996ede51e7070e29e2e5c6704042e3c1c92e
parent103bd6e167d38f5a8626fd51ccfcba53cd614e94
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.
lib/libc/stdio/fputs.c
lib/libc/stdio/fputws.c
lib/libc/stdio/puts.c
lib/libc/stdio/putw.c