on each module path component. Fix a one-byte buffer overflow at the same time that got highlighted in the process.