kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len
authorMartin Walch <walch.martin@web.de>
Wed, 15 Apr 2015 10:24:38 +0000 (11:24 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 15 Apr 2015 12:03:08 +0000 (20:03 +0800)
commitb04591efd29ae924814d0559476ac421db86d9dd
tree0866a5a1367933876c15578c56d4c1d2404d69ee
parent1e8ac3b467f02f239d18135a91a67a00d971242b
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@web.de>
Acked-by: Wang YanQing <udknight@gmail.com>
Acked-by: Benjamin Poirier <bpoirier@suse.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
(cherry picked from commit 503c823048e81cc85c0e9d8c297cc70203e335e5)
Signed-off-by: Jon Medhurst <tixy@linaro.org>
scripts/kconfig/menu.c