Re: [PATCH v2 5/5] kconfig: fix bug in search results string: usestrlen(gstr->s), not gstr->len
From: Wang YanQing
Date: Sat Oct 05 2013 - 13:55:21 EST
On Thu, Oct 03, 2013 at 07:25:53PM +0200, Martin Walch wrote:
> From: Martin Walch <walch.martin@xxxxxx>
> Date: Thu, 3 Oct 2013 18:35:16 +0200
> Subject: [PATCH v2 5/5] kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len
>
> The struct gstr has a capacity that may differ from the actual string length.
>
> However, a string manipulation in the function search_conf made the assumption
> that it is the same, which led to messing up some search results, especially
> when the content of the gstr in use had not yet reached at least 63 chars.
>
> Signed-off-by: Martin Walch <walch.martin@xxxxxx>
Acked-by: Wang YanQing <udknight@xxxxxxxxx>
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/