# HG changeset patch # User Kim F. Storm # Date 1126520822 0 # Node ID 02e47d7a9bcab5d371fb8875e44a48a5ef2fe60f # Parent da27b91068ae8cfcf753b5e23efb9b1b0d26fda9 (check_windows_init_file): Fix allocation of error buffer. diff -r da27b91068ae -r 02e47d7a9bca src/w32.c --- 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\" "