Line 222: prompt = malloc(sizeof(PLEASE_ENTER_PASSWORD + strlen(user))); sprintf(prompt, PLEASE_ENTER_PASSWORD, user); I'm amazed that this does even compile. ;-) Change to: prompt = malloc(sizeof(PLEASE_ENTER_PASSWORD) + strlen(user)); sprintf(prompt, PLEASE_ENTER_PASSWORD, user);
This is fixed as of pam-0.72-1 and later in Raw Hide, slated for inclusion in our next release.