diff options
| author | Jason Rumney | 2008-03-20 14:17:21 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-03-20 14:17:21 +0000 |
| commit | e280e5de6447ac1f9687844f3ecec68cbd647f3c (patch) | |
| tree | 62b7ca04e8fc74b93b26a76ef7c592ba572f04ee | |
| parent | 33311fb41f6d509fe536935b4a6b306ffc9859e7 (diff) | |
| download | emacs-e280e5de6447ac1f9687844f3ecec68cbd647f3c.tar.gz emacs-e280e5de6447ac1f9687844f3ecec68cbd647f3c.zip | |
(add_registry): Cast return value of alloca.
| -rw-r--r-- | nt/ChangeLog | 5 | ||||
| -rw-r--r-- | nt/addpm.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 9ed90a97eec..497fbec0008 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * addpm.c: Include malloc.h. | ||
| 4 | (add_registry): Cast return value of alloca. | ||
| 5 | |||
| 1 | 2008-02-11 Jason Rumney <jasonr@gnu.org> | 6 | 2008-02-11 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * addpm.c (add_registry): Add an App Paths registry key. | 8 | * 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) | |||
| 97 | HKEY gtk_key = NULL; | 97 | HKEY gtk_key = NULL; |
| 98 | 98 | ||
| 99 | len = strlen (path) + 15; /* \bin\emacs.exe + terminator. */ | 99 | len = strlen (path) + 15; /* \bin\emacs.exe + terminator. */ |
| 100 | emacs_path = alloca (len); | 100 | emacs_path = (char *) alloca (len); |
| 101 | sprintf (emacs_path, "%s\\bin\\emacs.exe", path); | 101 | sprintf (emacs_path, "%s\\bin\\emacs.exe", path); |
| 102 | 102 | ||
| 103 | RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len); | 103 | RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len); |