Merge "liblog: null terminate log_msg" am: 1153fbbcd3

Change-Id: I783c397431d8dea1959d979a0942f0095a0829e8