kconfig: don't allocate n+1 elements in temporary array
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 16 Jul 2013 18:32:33 +0000 (20:32 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Oct 2013 20:21:48 +0000 (22:21 +0200)
commit26f53e834095e19dfc7cf18b2683c618d98bd9e7
treeee16eda89dc7f1ce45ffa6de1124df4fe95ce781
parenta423328607a8dfbf84e3b92cbde918a8bd7a8c8d
kconfig: don't allocate n+1 elements in temporary array

The temporary array that stores the search results is not NULL-terminated,
so there is no reason to allocate n+1 elements.

Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/symbol.c