1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00

Include malloc.h.

(add_registry): Cast return value of alloca.
This commit is contained in:
Juanma Barranquero 2008-02-25 11:28:07 +00:00
parent 38cd9f1734
commit c44b4b4643
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-25 Juanma Barranquero <lekktu@gmail.com>
* addpm.c: Include malloc.h.
(add_registry): Cast return value of alloca.
2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
* config.nt (SHORTNAMES): Remove reference to obsolete variable.

View File

@ -32,6 +32,7 @@ Boston, MA 02110-1301, USA. */
#include <ddeml.h>
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
HDDEDATA CALLBACK
DdeCallback (UINT uType, UINT uFmt, HCONV hconv,
@ -87,7 +88,7 @@ add_registry (path)
affect the general operation of other installations of Emacs, and we
are blindly overwriting the Start Menu entries already.
*/
if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, "",
if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, "",
REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,
&hrootkey, NULL) == ERROR_SUCCESS)
{
@ -96,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);