On 02/07/2018 08:12 AM, Nilesh Javali wrote: > From: Andrew Vasquez <andrew.vasquez@xxxxxxxxxx> > > The data in NVRAM is not guaranteed to be NUL terminated. > Since snprintf expects byte-stream to accommodate null byte, > the CHAP secret is truncated. > Use sprintf instead of snprintf to fix the truncation of > CHAP name and secret. > > Signed-off-by: Andrew Vasquez <andrew.vasquez@xxxxxxxxxx> > Signed-off-by: Nilesh Javali <nilesh.javali@xxxxxxxxxx> > --- > drivers/scsi/qedi/qedi_main.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > > ... Signed-off-by: Lee Duncan <lduncan@xxxxxxxx> -- Lee Duncan