Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-16 Thread Chris Johns
On 17/10/20 10:37 am, Chris Johns wrote: > On 17/10/20 3:16 am, Frank Kühndel wrote: >> Hello Chris, >> >> On 10/15/20 10:29 PM, Chris Johns wrote: >>> On 16/10/20 7:24 am, Joel Sherrill wrote: On Thu, Oct 15, 2020 at 2:13 PM Chris Johns >>> > wrote: On 15/10/

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-16 Thread Chris Johns
On 17/10/20 3:16 am, Frank Kühndel wrote: > Hello Chris, > > On 10/15/20 10:29 PM, Chris Johns wrote: >> On 16/10/20 7:24 am, Joel Sherrill wrote: >>> On Thu, Oct 15, 2020 at 2:13 PM Chris Johns >> > wrote: >>> On 15/10/20 10:27 pm, Frank Kuehndel wrote: >>> > From

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-16 Thread Frank Kühndel
Hello Chris, On 10/15/20 10:29 PM, Chris Johns wrote: > On 16/10/20 7:24 am, Joel Sherrill wrote: >> On Thu, Oct 15, 2020 at 2:13 PM Chris Johns > > wrote: >> On 15/10/20 10:27 pm, Frank Kuehndel wrote: >> > From: Frank Kühndel >

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Chris Johns
On 16/10/20 7:24 am, Joel Sherrill wrote: > On Thu, Oct 15, 2020 at 2:13 PM Chris Johns > wrote: > On 15/10/20 10:27 pm, Frank Kuehndel wrote: > > From: Frank Kühndel > > > > > The compiler warning was: > >

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Joel Sherrill
On Thu, Oct 15, 2020 at 2:13 PM Chris Johns wrote: > On 15/10/20 10:27 pm, Frank Kuehndel wrote: > > From: Frank Kühndel > > > > The compiler warning was: > > > > ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: > > 'strncpy' specified bound depends on the length of the source argum

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Chris Johns
On 15/10/20 10:27 pm, Frank Kuehndel wrote: > From: Frank Kühndel > > The compiler warning was: > > ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: > 'strncpy' specified bound depends on the length of the source argument > 267 | strncpy(path, name, namelen); > | ^~~

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Joel Sherrill
On Thu, Oct 15, 2020 at 12:24 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 15/10/2020 15:06, Frank Kühndel wrote: > > > On 10/15/20 2:09 PM, Sebastian Huber wrote: > >>> From: Frank Kühndel > >>> > >>> The compiler warning was: > >>> > >>> ../../../cpukit/libmisc/rtems-fdt/

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Sebastian Huber
On 15/10/2020 15:06, Frank Kühndel wrote: On 10/15/20 2:09 PM, Sebastian Huber wrote: From: Frank Kühndel The compiler warning was: ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: 'strncpy' specified bound depends on the length of the source argument    267 | strncpy(path,

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Frank Kühndel
On 10/15/20 2:09 PM, Sebastian Huber wrote: > >> From: Frank Kühndel >> >> The compiler warning was: >> >> ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: >> 'strncpy' specified bound depends on the length of the source argument >>    267 | strncpy(path, name, namelen); >>   

Re: [PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Sebastian Huber
On 15/10/2020 13:27, Frank Kuehndel wrote: From: Frank Kühndel The compiler warning was: ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: 'strncpy' specified bound depends on the length of the source argument 267 | strncpy(path, name, namelen); | ^~~~

[PATCH] rtems-fdt / shell - Fix string truncation warning

2020-10-15 Thread Frank Kuehndel
From: Frank Kühndel The compiler warning was: ../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning: 'strncpy' specified bound depends on the length of the source argument 267 | strncpy(path, name, namelen); | ^~~~ It turns out that the `strncpy()`