aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2005-09-12 10:27:02 +0000
committerKim F. Storm <[email protected]>2005-09-12 10:27:02 +0000
commitacc23b87a7e350f3e36c8968f1bcb9cc7c8d3333 (patch)
tree8c0469a624117e176a5f8fcbdfa0c9a0c160712e /src
parente8157eae64a47df28befb40f280dc7a4cbe2e3b4 (diff)
(check_windows_init_file): Fix allocation of error buffer.
Diffstat (limited to 'src')
-rw-r--r--src/w32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32.c b/src/w32.c
index c7f6e3172f..9a51233527 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -3894,7 +3894,9 @@ check_windows_init_file ()
Lisp_Object load_path_print = Fprin1_to_string (full_load_path, Qnil);
char *init_file_name = SDATA (init_file);
char *load_path = SDATA (load_path_print);
- char *buffer = alloca (1024);
+ char *buffer = alloca (1024
+ + strlen (init_file_name)
+ + strlen (load_path));
sprintf (buffer,
"The Emacs Windows initialization file \"%s.el\" "