Make static analyzers happy.
Fix out-of-bounds write.