This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 35/67] Constify commands maint.c, plus maintenance_print_type


On 09/21/2017 06:09 AM, Tom Tromey wrote:
>  
> @@ -591,8 +583,7 @@ maintenance_do_deprecate (char *text, int deprecate)
>  	  if (end_ptr != NULL)
>  	    {
>  	      len = end_ptr - start_ptr;
> -	      start_ptr[len] = '\0';
> -	      replacement = xstrdup (start_ptr);
> +	      replacement = savestring (start_ptr, len);
>  	    }

This looks like another "command repeat" bug fix, right?  Yay!  :-)

(Please mention it in the commit log.)

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]