On 02/07/18 08:12, Nilesh Javali wrote:
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.

Reviewed-by: Bart Van Assche <bart.vanass...@wdc.com>

Thanks for having addressed the review comments.

Bart.

Reply via email to