mirror of https://github.com/MidnightCommander/mc
* utilunix.c (close_error_pipe): Use "%s" in message () to
prevent possible crash. (check_error_pipe): Likewise.
This commit is contained in:
parent
29633b4eb5
commit
9e174e05f6
|
@ -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>
|
2002-06-27 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* screen.c (do_enter_on_file_entry): Process associations before
|
* screen.c (do_enter_on_file_entry): Process associations before
|
||||||
|
|
|
@ -401,7 +401,7 @@ close_error_pipe (int error, char *text)
|
||||||
if (len == 0) return 0; /* Nothing to show */
|
if (len == 0) return 0; /* Nothing to show */
|
||||||
|
|
||||||
/* Show message from pipe */
|
/* Show message from pipe */
|
||||||
message (error, title, msg);
|
message (error, title, "%s", msg);
|
||||||
} else {
|
} else {
|
||||||
/* Show given text and possible message from pipe */
|
/* Show given text and possible message from pipe */
|
||||||
message (error, title, " %s \n %s ", text, msg);
|
message (error, title, " %s \n %s ", text, msg);
|
||||||
|
@ -435,9 +435,9 @@ void check_error_pipe (void)
|
||||||
close (error_pipe[0]);
|
close (error_pipe[0]);
|
||||||
}
|
}
|
||||||
if (len > 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;
|
static struct sigaction ignore, save_intr, save_quit, save_stop;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue