mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* nt/addpm.c (main): Fix buffer overflow
This commit is contained in:
parent
9254885a95
commit
25d44d27da
1 changed files with 3 additions and 2 deletions
|
|
@ -219,8 +219,9 @@ main (int argc, char *argv[])
|
|||
{
|
||||
int result;
|
||||
|
||||
char msg[ MAX_PATH ];
|
||||
sprintf (msg, "Install Emacs at %s?\n", emacs_path);
|
||||
const char install_msg[] = "Install Emacs at %s?\n";
|
||||
char msg[ MAX_PATH + sizeof (install_msg) ];
|
||||
sprintf (msg, install_msg, emacs_path);
|
||||
result = MessageBox (NULL, msg, "Install Emacs",
|
||||
MB_OKCANCEL | MB_ICONQUESTION);
|
||||
if (result != IDOK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue