Mostly a cosmetic change to replace strlen with strnlen.
Obtained from: Project ACRN MFC after: 2 weeks