logd: Fix unintialized memory assumptions part 2

A previously change fixed that SerializedLogChunk.three_logs assumes
that log buffers are zero-initialized, but they are not.

Unfortunately, that fix wasn't enough since
sizeof(expected_buffer_data) includes the null terminator of the
expected string, but that null terminator is not expected to appear in
the log chunk.

This change subtracts 1 from sizeof(expected_buffer_data) to fix this
test on host (again).

Bug: http://b/193205727
Test: logd unit tests
Change-Id: Ibe824329116b1592df13b4069e5b000ee5cdb8bf
(cherry picked from commit 3e8d3a7c499fbe3ddced1a59ff9f7471f7ab74c1)
1 file changed
tree: 12b62b4855afb1708b01a636c9f8b2269b2717bc
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/
  5. rust/
  6. OWNERS
  7. PREUPLOAD.cfg
  8. TEST_MAPPING