Re: [PATCH v2] tools/libs/stat: fix broken build

2020-09-12 Thread Andrew Cooper
On 12/09/2020 09:21, Juergen Gross wrote: > Making getBridge() static triggered a build error with some gcc versions: > > error: 'strncpy' output may be truncated copying 15 bytes from a string of > length 255 [-Werror=stringop-truncation] > > Fix that by using a buffer with 256 bytes instead. > >

[PATCH v2] tools/libs/stat: fix broken build

2020-09-12 Thread Juergen Gross
Making getBridge() static triggered a build error with some gcc versions: error: 'strncpy' output may be truncated copying 15 bytes from a string of length 255 [-Werror=stringop-truncation] Fix that by using a buffer with 256 bytes instead. Fixes: 6d0ec053907794 ("tools: split libxenstat into ne