Skip to content

Commit

Permalink
fix possible overflow warning gcc11 (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
danewalton authored Sep 3, 2021
1 parent 92cc889 commit 64ea7a9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/strings_ut/strings_ut.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ BEGIN_TEST_SUITE(strings_unittests)
count = umock_c_negative_tests_call_count();
for (index = 0; index < count; index++)
{
char tmp_msg[64];
char tmp_msg[128];

umock_c_negative_tests_reset();
umock_c_negative_tests_fail_call(index);
Expand Down Expand Up @@ -263,7 +263,7 @@ BEGIN_TEST_SUITE(strings_unittests)
count = umock_c_negative_tests_call_count();
for (index = 0; index < count; index++)
{
char tmp_msg[64];
char tmp_msg[128];

umock_c_negative_tests_reset();
umock_c_negative_tests_fail_call(index);
Expand Down Expand Up @@ -407,7 +407,7 @@ BEGIN_TEST_SUITE(strings_unittests)
count = umock_c_negative_tests_call_count();
for (index = 0; index < count; index++)
{
char tmp_msg[64];
char tmp_msg[128];

umock_c_negative_tests_reset();
umock_c_negative_tests_fail_call(index);
Expand Down Expand Up @@ -774,7 +774,7 @@ BEGIN_TEST_SUITE(strings_unittests)
count = umock_c_negative_tests_call_count();
for (index = 0; index < count; index++)
{
char tmp_msg[64];
char tmp_msg[128];
int nResult;

umock_c_negative_tests_reset();
Expand Down Expand Up @@ -1005,7 +1005,7 @@ BEGIN_TEST_SUITE(strings_unittests)
for (index = 0; index < count; index++)
{
STRING_HANDLE str_result;
char tmp_msg[64];
char tmp_msg[128];

umock_c_negative_tests_reset();
umock_c_negative_tests_fail_call(index);
Expand Down Expand Up @@ -1114,7 +1114,7 @@ BEGIN_TEST_SUITE(strings_unittests)
for (index = 0; index < count; index++)
{
STRING_HANDLE result;
char tmp_msg[64];
char tmp_msg[128];

umock_c_negative_tests_reset();
umock_c_negative_tests_fail_call(index);
Expand Down Expand Up @@ -1314,7 +1314,7 @@ BEGIN_TEST_SUITE(strings_unittests)
count = umock_c_negative_tests_call_count();
for (index = 0; index < count; index++)
{
char tmp_msg[64];
char tmp_msg[128];
STRING_HANDLE result;

umock_c_negative_tests_reset();
Expand Down Expand Up @@ -1552,7 +1552,7 @@ BEGIN_TEST_SUITE(strings_unittests)
count = umock_c_negative_tests_call_count();
for (index = 0; index < count; index++)
{
char tmp_msg[64];
char tmp_msg[128];
int str_result;

umock_c_negative_tests_reset();
Expand Down

0 comments on commit 64ea7a9

Please sign in to comment.