Re: [PATCH] Psxtest: Fix String truncation warning

2020-09-15 Thread Chris Johns
On 15/9/20 7:04 pm, Aschref Ben-Thabet wrote: > 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). > --- > testsuites/psxtests/psxndbm01/in

[PATCH] Psxtest: Fix String truncation warning

2020-09-15 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). --- testsuites/psxtests/psxndbm01/init.c | 11 +++ 1 file changed, 3 insertions(+), 8 de