summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 7fb861f..a5e8e90 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -673,8 +673,7 @@ int getty_main(int argc UNUSED_PARAM, char **argv)
/* Write the modem init string and DON'T flush the buffers */
if (options.flags & F_INITSTRING) {
debug("writing init string\n");
- /* todo: use xwrite_str? */
- full_write(STDOUT_FILENO, options.initstring, strlen(options.initstring));
+ full_write1_str(options.initstring);
}
/* Optionally detect the baud rate from the modem status message */