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(rtems_task_argument ignored)
    rtems_test_assert( strcmp( (const char*)get_phone_no.dptr, PHONE_NO2 ) == 0 
);
puts( "Fetch non-existing record and confirm error." );
-  test_strings = (char*)malloc(6);
-  memcpy( test_strings, "Hello", 5 );
-
-  test_strings[5] = '\0';
+  test_strings = strdup( "Hello" );
This patch is not against the master branch. Please squash all your local commits together and send a v4 which includes all changes against the master branch.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to