diff options
| author | Glenn Morris | 2019-06-11 08:38:34 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-06-11 08:38:34 -0700 |
| commit | e17cda4942adf353fb7adc4bcdaa61a1ae79db8d (patch) | |
| tree | ff5f524568260a2823023c2a8e7dde84fc6ae1e0 /nt | |
| parent | ef744119a7cbd0692c53704604e9bb6345c371b6 (diff) | |
| parent | 758e9a8ed49c15f7069a67cf0c2ce3c6f9a3f7e1 (diff) | |
| download | emacs-e17cda4942adf353fb7adc4bcdaa61a1ae79db8d.tar.gz emacs-e17cda4942adf353fb7adc4bcdaa61a1ae79db8d.zip | |
Merge from origin/emacs-26
758e9a8 Revert "Don't mark main_thread (Bug#36155)"
1877b7b Don't mark main_thread (Bug#36155)
4904fb3 More quotation fixes (Bug#35885)
4cc4b5d ; * src/keyboard.c (tool_bar_items): Fix a typo. (Bug#36143)
b58ecaf Minor copyedits in efaq-w32
48422af Tiny improvement of documentation of major mode conventions
25d44d2 * nt/addpm.c (main): Fix buffer overflow
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/addpm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nt/addpm.c b/nt/addpm.c index f71ce5f2385..a8bcd4a5c73 100644 --- a/nt/addpm.c +++ b/nt/addpm.c | |||
| @@ -219,8 +219,9 @@ main (int argc, char *argv[]) | |||
| 219 | { | 219 | { |
| 220 | int result; | 220 | int result; |
| 221 | 221 | ||
| 222 | char msg[ MAX_PATH ]; | 222 | const char install_msg[] = "Install Emacs at %s?\n"; |
| 223 | sprintf (msg, "Install Emacs at %s?\n", emacs_path); | 223 | char msg[ MAX_PATH + sizeof (install_msg) ]; |
| 224 | sprintf (msg, install_msg, emacs_path); | ||
| 224 | result = MessageBox (NULL, msg, "Install Emacs", | 225 | result = MessageBox (NULL, msg, "Install Emacs", |
| 225 | MB_OKCANCEL | MB_ICONQUESTION); | 226 | MB_OKCANCEL | MB_ICONQUESTION); |
| 226 | if (result != IDOK) | 227 | if (result != IDOK) |