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: NJean Delvare <jdelvare@suse.de> Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: NJean Delvare <jdelvare@suse.de>
Showing
想要评论请 注册 或 登录