On 02/07/2018 08:12 AM, Nilesh Javali wrote:
> From: Andrew Vasquez <[email protected]>
> 
> 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 <[email protected]>
> Signed-off-by: Nilesh Javali <[email protected]>
> ---
>  drivers/scsi/qedi/qedi_main.c | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
> 
> ...

Signed-off-by: Lee Duncan <[email protected]>

-- 
Lee Duncan

Reply via email to