Use strlen instead of an int when removing prefix from a string
Added checks for repeated arguments to the PAM module