]> git.eshelyaron.com Git - emacs.git/commitdiff
(check_windows_init_file): Fix allocation of error buffer.
authorKim F. Storm <storm@cua.dk>
Mon, 12 Sep 2005 10:27:02 +0000 (10:27 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 12 Sep 2005 10:27:02 +0000 (10:27 +0000)
src/w32.c

index c7f6e3172f91b416a278f7b27234e51241a95237..9a51233527d46564798601c5aeb29e63bcd01fa9 100644 (file)
--- 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\" "