Fix reading garbage section names in altered plugins

Some filthy plugins alter the section list and remove the last section
name's null terminator.
This patch only reads as many bytes as the last name can be.