[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/nt/addpm.c,v
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/nt/addpm.c,v |
Date: |
Mon, 25 Feb 2008 11:26:58 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juanma Barranquero <lektu> 08/02/25 11:26:58
Index: addpm.c
===================================================================
RCS file: /sources/emacs/emacs/nt/addpm.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- addpm.c 24 Feb 2008 10:09:01 -0000 1.27
+++ addpm.c 25 Feb 2008 11:26:58 -0000 1.28
@@ -32,6 +32,7 @@
#include <ddeml.h>
#include <stdlib.h>
#include <stdio.h>
+#include <malloc.h>
HDDEDATA CALLBACK
DdeCallback (UINT uType, UINT uFmt, HCONV hconv,
@@ -96,7 +97,7 @@
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);