startup: use a format string, to deflect format-string attacks
This fixes the second part of https://savannah.gnu.org/bugs/?63964. Reported-by: Vince Vince
This commit is contained in:
parent
b8ead3b511
commit
fdcafb83e3
@ -2565,7 +2565,7 @@ int main(int argc, char **argv)
|
||||
|
||||
#ifdef ENABLE_NANORC
|
||||
if (startup_problem != NULL)
|
||||
statusline(ALERT, startup_problem);
|
||||
statusline(ALERT, "%s", startup_problem);
|
||||
|
||||
#define NOTREBOUND first_sc_for(MMAIN, do_help) && \
|
||||
first_sc_for(MMAIN, do_help)->keycode == 0x07
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user