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

Pedro Alves
2017-09-21T10:06:55Z

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