Merge "Return correct length from pmsgRead()"