mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 13:07:06 +00:00
[Unit-tests] Fix test framework error on newer compiler: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
This commit is contained in:
1 parent
4d9c004eca
commit
68e587d7cf
2 files changed
+21
-2
No files matched your search
@@ -53,6 +53,17 @@ FST_CORE_BEGIN("./conf")
|
||||
}
|
||||
FST_TEARDOWN_END()
|
||||
|
||||
FST_TEST_BEGIN(test_fctstr_safe_cpy)
|
||||
{
|
||||
char *dst;
|
||||
const char *src = "1234567890";
|
||||
|
||||
dst = fctstr_clone(src);
|
||||
fst_check_string_equals(dst, src);
|
||||
free(dst);
|
||||
}
|
||||
FST_TEST_END()
|
||||
|
||||
FST_TEST_BEGIN(test_switch_rand)
|
||||
{
|
||||
int i, c = 0;
|
||||
|
||||
Reference in new issue
Block a user