aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
Diffstat (limited to 'nt')
-rw-r--r--nt/addpm.c5
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)