Merge pull request #12254 from maciejbocianski/fix_unittest_ATCmdParser_segfault

unittest: fix ATCmdParser test segfault
pull/12261/head
Martin Kojtal 2020-01-15 13:06:48 +01:00 committed by GitHub
commit 631b581ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ TEST_F(test_ATCmdParser, test_ATCmdParser_read)
filehandle_stub_table_pos = 0;
ATCmdParser at(&fh1, ",");
char buf[6];
memset(buf, 0, 6);
char buf[8];
memset(buf, 0, 8);
// TEST EMPTY BUFFER
// Shouldn't read any byte since buffer is empty