Changes in uspace/lib/c/test/string.c [dd7df1c:06e0f37] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/string.c
rdd7df1c r06e0f37 799 799 PCUT_TEST(strndup_nonempty_short) 800 800 { 801 #pragma GCC diagnostic push802 // Intentionally checking it works with _longer_ size than actual803 #if defined(__GNUC__) && (__GNUC__ >= 11)804 #pragma GCC diagnostic ignored "-Wstringop-overread"805 #endif806 801 char *d = strndup("abc", 5); 807 #pragma GCC diagnostic pop808 802 PCUT_ASSERT_NOT_NULL(d); 809 803 PCUT_ASSERT_TRUE(d[0] == 'a');
Note:
See TracChangeset
for help on using the changeset viewer.