From: Todd C. Miller Date: Tue, 20 Aug 2019 18:43:40 +0000 (-0600) Subject: Use fputs(), not printf() for plain strings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2087f6354c33f69351d6b6aabb881d5cad2f4d7a;p=sudo Use fputs(), not printf() for plain strings. --- diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 1dba39cff..f4bf89012 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -704,7 +704,7 @@ setup_terminal(struct log_info *li, bool interactive, bool resize) } if (li->rows > terminal_rows || li->cols > terminal_cols) { - printf(_("Warning: your terminal is too small to properly replay the log.\n")); + fputs(_("Warning: your terminal is too small to properly replay the log.\n"), stdout); printf(_("Log geometry is %d x %d, your terminal's geometry is %d x %d."), li->rows, li->cols, terminal_rows, terminal_cols); } debug_return; @@ -733,7 +733,8 @@ restore_terminal_size(void) if (terminal_was_resized) { /* We are still in raw mode, hence the carriage return. */ putchar('\r'); - printf(U_("Replay finished, press any key to restore the terminal.")); + fputs(U_("Replay finished, press any key to restore the terminal."), + stdout); fflush(stdout); (void)getchar(); xterm_set_size(terminal_rows, terminal_cols);