Skip to content

Commit

Permalink
Fixed incorrect and dangerous use of printf(). (thanks, Reto!).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 15, 2009
1 parent e59d497 commit 7923427
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui_stdio.c
Expand Up @@ -62,11 +62,11 @@ static int readstr(const char *prompt, char *buf, int len,

if (fwd)
{
printf(_("Press enter to continue."));
printf("%s", _("Press enter to continue."));
printf("\n");
} // if

printf(_("> "));
printf("%s",_("> "));
fflush(stdout);

if ((retval = read_stdin(buf, len)) >= 0)
Expand Down Expand Up @@ -417,7 +417,7 @@ static int MojoGui_stdio_options(MojoGuiSetupOptions *opts,
int line = 0;

printf("\n\n");
printf(inst_opts_str);
printf("%s", inst_opts_str);
printf("\n");
print_options(opts, &line, 1);
printf("\n");
Expand Down

0 comments on commit 7923427

Please sign in to comment.