fputs: Return the number of bytes written.
Fix r295631: wrong value. Pointy hat: pfg (me) Pointed out by: bde
This commit is contained in:
parent
623277619d
commit
179a5a39a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295638
@ -64,6 +64,6 @@ fputs(const char * __restrict s, FILE * __restrict fp)
|
||||
retval = __sfvwrite(fp, &uio);
|
||||
FUNLOCKFILE(fp);
|
||||
if (retval == 0)
|
||||
return (iov.iov_len > INT_MAX ? INT_MAX : uio.uio_resid);
|
||||
return (iov.iov_len > INT_MAX ? INT_MAX : iov.iov_len);
|
||||
return (retval);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user