# HG changeset patch # User Thomas Klausner # Date 1624389523 -7200 # Node ID a3da9370c03fbf2cfeba4dcd9c94976eb118abb1 # Parent e9ba8c538734f98cf2ada9a61fde8c451ad2c061 Use 'unsigned char *' instead of string define This way, sizeof() does the intended thing instead of returning the size of a pointer on the platform. Coverity CID 349411 diff -r e9ba8c538734 -r a3da9370c03f tests/testostr.c --- a/tests/testostr.c Tue Jun 22 21:07:13 2021 +0200 +++ b/tests/testostr.c Tue Jun 22 21:18:43 2021 +0200 @@ -35,7 +35,7 @@ #include "tests.h" -#define TEST_STR (os0_t)"This is my test string (with extra unused data)" +unsigned char TEST_STR[] = "This is my test string (with extra unused data)"; /* The following string contains UTF-8 encoded characters (Chinese characters) */ #define TEST_IDN_UTF8 "freeDiameter.中国"