projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
select: fix 64-bit timeout truncation on pre-time64 kernels
[musl]
/
src
/
stdio
/
fputs.c
diff --git
a/src/stdio/fputs.c
b/src/stdio/fputs.c
index
4737f44
..
1cf344f
100644
(file)
--- a/
src/stdio/fputs.c
+++ b/
src/stdio/fputs.c
@@
-3,7
+3,8
@@
int fputs(const char *restrict s, FILE *restrict f)
{
- return (int)fwrite(s, strlen(s), 1, f) - 1;
+ size_t l = strlen(s);
+ return (fwrite(s, 1, l, f)==l) - 1;
}
weak_alias(fputs, fputs_unlocked);