Re: [libvirt] [PATCH] completer: Doesn't alloc enough space for null terminated array of strings

2018-07-12 Thread Michal Privoznik
On 07/12/2018 01:46 PM, Simon Kobyda wrote: > Functions virshSecretEventNameCompleter, virshPoolEventNameCompleter, > virshNodedevEventNameCompleter allocates only enough space for array of N > strings. > However these are null terminated strings, so program needs to alloc > space fo

[libvirt] [PATCH] completer: Doesn't alloc enough space for null terminated array of strings

2018-07-12 Thread Simon Kobyda
Functions virshSecretEventNameCompleter, virshPoolEventNameCompleter, virshNodedevEventNameCompleter allocates only enough space for array of N strings. However these are null terminated strings, so program needs to alloc space for array of N+1 strings. How to replicate e