kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len
authorMartin Walch <walch.martin@web.de>
Thu, 3 Oct 2013 16:35:16 +0000 (18:35 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 23 Nov 2013 10:56:11 +0000 (11:56 +0100)
commit173f491c6729177f94c389728f5c03386b52246f
treef650c7fdf94cc12e87641a4914a2e152e8dbd966
parent8ad99f6221d68bbc9dbaedf66834a1cbe1830b5a
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>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/menu.c