summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--text-utils/ul.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c
index 26d2b172d..b3b3dc354 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -447,8 +447,7 @@ static void overstrike(void)
putwchar('\r');
for (*cp = ' '; *cp == ' '; cp--)
*cp = 0;
- for (cp = lbuf; *cp; cp++)
- putwchar(*cp);
+ fputws(lbuf, stdout);
if (hadbold) {
putwchar('\r');
for (cp = lbuf; *cp; cp++)
@@ -481,8 +480,7 @@ static void iattr(void)
}
for (*cp = ' '; *cp == ' '; cp--)
*cp = 0;
- for (cp = lbuf; *cp; cp++)
- putwchar(*cp);
+ fputws(lbuf, stdout);
putwchar('\n');
}