From: Jason Rumney Date: Thu, 20 Mar 2008 14:17:21 +0000 (+0000) Subject: (add_registry): Cast return value of alloca. X-Git-Tag: emacs-22.2~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e280e5de6447ac1f9687844f3ecec68cbd647f3c;p=emacs.git (add_registry): Cast return value of alloca. --- diff --git a/nt/ChangeLog b/nt/ChangeLog index 9ed90a97eec..497fbec0008 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,8 @@ +2008-03-20 Juanma Barranquero + + * addpm.c: Include malloc.h. + (add_registry): Cast return value of alloca. + 2008-02-11 Jason Rumney * addpm.c (add_registry): Add an App Paths registry key. diff --git a/nt/addpm.c b/nt/addpm.c index 8541c468b46..52c2d32a959 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -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);