(add_registry): Cast return value of alloca.

This commit is contained in:
Jason Rumney 2008-03-20 14:17:21 +00:00
parent 33311fb41f
commit e280e5de64
2 changed files with 6 additions and 1 deletions

View 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.

View 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);