Re: [PATCH v3] Psxtest : Fix String Turncation warning

2020-08-13 Thread Sebastian Huber
On 13/08/2020 13:44, Aschref Ben-Thabet wrote: diff --git a/testsuites/psxtests/psxndbm01/init.c b/testsuites/psxtests/psxndbm01/init.c index b524aff0df..cb4d1aca66 100644 --- a/testsuites/psxtests/psxndbm01/init.c +++ b/testsuites/psxtests/psxndbm01/init.c @@ -217,10 +217,7 @@ rtems_task Init(

[PATCH v3] Psxtest : Fix String Turncation warning

2020-08-13 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet replace strncpy with strdup to silence this warning since it tries to allocate enough memory to hold the old string (plus a '\0' character to mark the end of the string). ddd --- testsuites/psxtests/psxndbm01/init.c | 5 + 1 file changed, 1 insertion(+), 4 deletions