Re: [PATCH v2] cpukit: Edit String Warninng

2020-08-13 Thread Aschref Ben-Thabet
Sorry it was not against master ! i send then V3 for this patch. On 8/13/20 5:19 PM, Aschref Ben-Thabet wrote: From: Aschref Ben Thabet Using FILENAME_MAX as a parameter in strncpy function can gererate warnings of type: -Wstringop-truncation. Replacing it with sizeof (distination_buffer) can

[PATCH v2] cpukit: Edit String Warninng

2020-08-13 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet Using FILENAME_MAX as a parameter in strncpy function can gererate warnings of type: -Wstringop-truncation. Replacing it with sizeof (distination_buffer) can avoid this warning. --- cpukit/libmisc/shell/main_edit.c | 11 ++- 1 file changed, 6 insertions(+), 5 del