]> git.eshelyaron.com Git - emacs.git/commitdiff
(add_registry): Cast return value of alloca.
authorJason Rumney <jasonr@gnu.org>
Thu, 20 Mar 2008 14:17:21 +0000 (14:17 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 20 Mar 2008 14:17:21 +0000 (14:17 +0000)
nt/ChangeLog
nt/addpm.c

index 9ed90a97eec6349b5ff5131dc6f96918512ce966..497fbec000840c4c536bb87c2906b23fb608e04a 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-20  Juanma Barranquero  <lekktu@gmail.com>
+
+       * addpm.c: Include malloc.h.
+       (add_registry): Cast return value of alloca.
+
 2008-02-11  Jason Rumney  <jasonr@gnu.org>
 
        * addpm.c (add_registry): Add an App Paths registry key.
index 8541c468b466099d23cc1ab64669684fa35000cc..52c2d32a95920505f84da27a65ff8e51ae0ef15f 100644 (file)
@@ -97,7 +97,7 @@ add_registry (path)
       HKEY gtk_key = NULL;
 
       len = strlen (path) + 15; /* \bin\emacs.exe + terminator.  */
-      emacs_path = alloca (len);
+      emacs_path = (char *) alloca (len);
       sprintf (emacs_path, "%s\\bin\\emacs.exe", path);
 
       RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len);