View | Details | Raw Unified | Return to ticket 6184 | Differences between
and this patch

Collapse All | Expand All

(-)a/contribs/pam_slurm_adopt/helper.c (-2 / +1 lines)
Lines 128-134 send_user_msg(pam_handle_t *pamh, const char *mesg) Link Here
128
128
129
	/*  Construct msg to send to app.
129
	/*  Construct msg to send to app.
130
	 */
130
	 */
131
	memcpy(str, mesg, sizeof(str));
131
	strncpy(str, mesg, sizeof(str));
132
	msg[0].msg_style = PAM_ERROR_MSG;
132
	msg[0].msg_style = PAM_ERROR_MSG;
133
	msg[0].msg = str;
133
	msg[0].msg = str;
134
	pmsg[0] = &msg[0];
134
	pmsg[0] = &msg[0];
135
- 

Return to ticket 6184