changeset 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 da27b91068ae
children 41f88837ca5b
files src/w32.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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\" "