Fix C++ build for Cygwin
[deliverable/binutils-gdb.git] / gdb / gdbserver / win32-low.c
index e60be5a6df1570f825002f32777fa1bff6daa779..70abfcd4d03c3dabf5df4b61bb89e3e17041b06f 100644 (file)
@@ -642,8 +642,8 @@ win32_create_inferior (char *program, char **program_args)
   if (path_ptr)
     {
       int size = cygwin_conv_path_list (CCP_POSIX_TO_WIN_A, path_ptr, NULL, 0);
-      orig_path = alloca (strlen (path_ptr) + 1);
-      new_path = alloca (size);
+      orig_path = (char *) alloca (strlen (path_ptr) + 1);
+      new_path = (char *) alloca (size);
       strcpy (orig_path, path_ptr);
       cygwin_conv_path_list (CCP_POSIX_TO_WIN_A, path_ptr, new_path, size);
       setenv ("PATH", new_path, 1);
This page took 0.023209 seconds and 4 git commands to generate.