Changeset c1a7a65 in mainline
- Timestamp:
- 2023-07-24T16:26:04Z (15 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 474fd65
- Parents:
- 417e1f6
- git-author:
- Vojtech Horky <vojtech.horky@…> (2023-07-24 16:21:37)
- git-committer:
- Vojtech Horky <vojtech.horky@…> (2023-07-24 16:26:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/string.c
r417e1f6 rc1a7a65 799 799 PCUT_TEST(strndup_nonempty_short) 800 800 { 801 #pragma GCC diagnostic push 802 // Intentionally checking it works with _longer_ size than actual 803 #pragma GCC diagnostic ignored "-Wstringop-overread" 801 804 char *d = strndup("abc", 5); 805 #pragma GCC diagnostic pop 802 806 PCUT_ASSERT_NOT_NULL(d); 803 807 PCUT_ASSERT_TRUE(d[0] == 'a');
Note:
See TracChangeset
for help on using the changeset viewer.