diff src/w32.c @ 65458:02e47d7a9bca

(check_windows_init_file): Fix allocation of error buffer.
author Kim F. Storm <storm@cua.dk>
date Mon, 12 Sep 2005 10:27:02 +0000
parents a0d1312ede66
children 8d40a7886950 fa0da9b57058
line wrap: on
line diff
--- a/src/w32.c	Mon Sep 12 10:26:48 2005 +0000
+++ b/src/w32.c	Mon Sep 12 10:27:02 2005 +0000
@@ -3894,7 +3894,9 @@
 	  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\" "