Re: [PATCH v2 1/2] tools: use memcpy instead of strncpy in getBridge

2020-10-07 Thread Bertrand Marquis
> On 7 Oct 2020, at 10:14, Jürgen Groß wrote: > > On 07.10.20 10:56, Bertrand Marquis wrote: >> Hi Jurgen, >>> On 7 Oct 2020, at 09:39, Jürgen Groß wrote: >>> >>> On 07.10.20 10:28, Bertrand Marquis wrote: Use memcpy in getBridge to prevent gcc warnings about truncated strings. We k

Re: [PATCH v2 1/2] tools: use memcpy instead of strncpy in getBridge

2020-10-07 Thread Jürgen Groß
On 07.10.20 10:56, Bertrand Marquis wrote: Hi Jurgen, On 7 Oct 2020, at 09:39, Jürgen Groß wrote: On 07.10.20 10:28, Bertrand Marquis wrote: Use memcpy in getBridge to prevent gcc warnings about truncated strings. We know that we might truncate it, so the gcc warning here is wrong. Revert pr

Re: [PATCH v2 1/2] tools: use memcpy instead of strncpy in getBridge

2020-10-07 Thread Bertrand Marquis
Hi Jurgen, > On 7 Oct 2020, at 09:39, Jürgen Groß wrote: > > On 07.10.20 10:28, Bertrand Marquis wrote: >> Use memcpy in getBridge to prevent gcc warnings about truncated >> strings. We know that we might truncate it, so the gcc warning >> here is wrong. >> Revert previous change changing buffer

Re: [PATCH v2 1/2] tools: use memcpy instead of strncpy in getBridge

2020-10-07 Thread Jürgen Groß
On 07.10.20 10:28, Bertrand Marquis wrote: Use memcpy in getBridge to prevent gcc warnings about truncated strings. We know that we might truncate it, so the gcc warning here is wrong. Revert previous change changing buffer sizes as bigger buffers are not needed. Signed-off-by: Bertrand Marquis

[PATCH v2 1/2] tools: use memcpy instead of strncpy in getBridge

2020-10-07 Thread Bertrand Marquis
Use memcpy in getBridge to prevent gcc warnings about truncated strings. We know that we might truncate it, so the gcc warning here is wrong. Revert previous change changing buffer sizes as bigger buffers are not needed. Signed-off-by: Bertrand Marquis --- Changes in v2: Use MIN between string l