Skip to content

Commit 455b846

Browse files
unittest: fix ATCmdParser test segfault
1 parent dbb0695 commit 455b846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UNITTESTS/platform/ATCmdParser/test_ATCmdParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ TEST_F(test_ATCmdParser, test_ATCmdParser_read)
189189
filehandle_stub_table_pos = 0;
190190

191191
ATCmdParser at(&fh1, ",");
192-
char buf[6];
193-
memset(buf, 0, 6);
192+
char buf[8];
193+
memset(buf, 0, 8);
194194

195195
// TEST EMPTY BUFFER
196196
// Shouldn't read any byte since buffer is empty

0 commit comments

Comments
 (0)