summaryrefslogtreecommitdiffstats
path: root/text-utils/ul.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r--text-utils/ul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c
index d5bca45..85fa86f 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -128,9 +128,9 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(USAGE_OPTIONS, out);
fputs(_(" -t, -T, --terminal TERMINAL override the TERM environment variable\n"), out);
fputs(_(" -i, --indicated underlining is indicated via a separate line\n"), out);
- printf(USAGE_HELP_OPTIONS(30));
+ fprintf(out, USAGE_HELP_OPTIONS(30));
- printf(USAGE_MAN_TAIL("ul(1)"));
+ fprintf(out, USAGE_MAN_TAIL("ul(1)"));
exit(EXIT_SUCCESS);
}
@@ -141,7 +141,7 @@ static void need_column(struct ul_ctl *ctl, size_t new_max)
while (new_max >= ctl->buflen) {
ctl->buflen *= 2;
- ctl->buf = xrealloc(ctl->buf, sizeof(struct ul_char) * ctl->buflen);
+ ctl->buf = xreallocarray(ctl->buf, ctl->buflen, sizeof(struct ul_char));
}
}