# HG changeset patch # User Jason Rumney # Date 1206022616 0 # Node ID f29e1d94dc8160661a6b3841ef26ebcfbe0667b1 # Parent 8d65de42337d7dcba48db4ff50faf1c93a47799a (add_registry): Cast return value of alloca. diff -r 8d65de42337d -r f29e1d94dc81 nt/addpm.c --- a/nt/addpm.c Thu Mar 20 14:12:50 2008 +0000 +++ b/nt/addpm.c Thu Mar 20 14:16:56 2008 +0000 @@ -97,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);