log: Fix an oob array read.