Re: [PATCH] zero-terminate result of target_read_alloc

Mark Kettenis
2006-07-18T11:25:31Z

>
> This patch makes result of target_read_alloc zero-terminated.
> The point is that often the object is not allowed to contain embedded
> zeros,
> and working with zero-terminated strings is much easier.
>
> OK?

This is wrong. Either the terminating nul is part of the object you're
reading or it is not. GDB shouldn't at its own.

>
> - Volodya
>
> 2006-07-18 Vladimir Prus <vladimir@codesourcery.com>
>
> * target.c (target_read_alloc): Zero-terminate result.
>
>