* utilunix.c (close_error_pipe): Use "%s" in message () to

prevent possible crash.
(check_error_pipe): Likewise.
This commit is contained in:
Andrew V. Samoilov 2002-07-01 19:08:44 +00:00
parent 29633b4eb5
commit 9e174e05f6
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-07-01 Andrew V. Samoilov <kai@cmail.ru>
* utilunix.c (close_error_pipe): Use "%s" in message () to
prevent possible crash.
(check_error_pipe): Likewise.
2002-06-27 Pavel Roskin <proski@gnu.org>
* screen.c (do_enter_on_file_entry): Process associations before

View File

@ -401,7 +401,7 @@ close_error_pipe (int error, char *text)
if (len == 0) return 0; /* Nothing to show */
/* Show message from pipe */
message (error, title, msg);
message (error, title, "%s", msg);
} else {
/* Show given text and possible message from pipe */
message (error, title, " %s \n %s ", text, msg);
@ -435,9 +435,9 @@ void check_error_pipe (void)
close (error_pipe[0]);
}
if (len > 0)
message (0, _(" Warning "), error);
message (0, _(" Warning "), "%s", error);
}
#endif
#endif /* !VFS_STANDALONE */
static struct sigaction ignore, save_intr, save_quit, save_stop;