aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/xwrap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index 27473cf5..86905350 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -161,12 +161,8 @@ void xputsl(char *s, int len)
{
int out;
- while (len != (out = fwrite(s, 1, len, stdout))) {
- if (out<1) perror_exit("write");
- len -= out;
- s += out;
- }
xflush(0);
+ xwrite(0, s, len);
}
// xputs with no newline