From 08660a811e078d3a6ce950a340a1b9071cfd7e8d Mon Sep 17 00:00:00 2001 From: Rubin Xu Date: Thu, 5 May 2016 16:46:24 +0100 Subject: [PATCH] Return correct length from pmsgRead() Bug: 28610769 Change-Id: I38cac786ca43ef8d9530f4e2e5a0bdd4cc3bccef --- liblog/pmsg_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblog/pmsg_reader.c b/liblog/pmsg_reader.c index f5e91c85a..2e4fc5d86 100644 --- a/liblog/pmsg_reader.c +++ b/liblog/pmsg_reader.c @@ -227,7 +227,7 @@ static int pmsgRead(struct android_log_logger_list *logger_list, log_msg->entry_v4.uid = buf.p.uid; } - return ret; + return ret + log_msg->entry_v4.hdr_size; } }