Constify execute_command
[deliverable/binutils-gdb.git] / gdb / reverse.c
index 7362f321e3615d5df265094b157cfe551038de4e..35d50198b068966842d96fe94bffd0c5cc7ebdca 100644 (file)
@@ -50,7 +50,7 @@ exec_reverse_once (const char *cmd, const char *args, int from_tty)
   std::string reverse_command = string_printf ("%s %s", cmd, args ? args : "");
   scoped_restore restore_exec_dir
     = make_scoped_restore (&execution_direction, EXEC_REVERSE);
-  execute_command (&reverse_command[0], from_tty);
+  execute_command (reverse_command.c_str (), from_tty);
 }
 
 static void
This page took 0.025859 seconds and 4 git commands to generate.