[PATCH] staging: rtl8712: Replace snprintf with scnprintf
Rohit Sarkar
rohitsarkar5398 at gmail.com
Wed Oct 2 04:33:51 UTC 2019
On Tue, Oct 01, 2019 at 10:00:56PM +0300, Dan Carpenter wrote:
>
> No. scnprintf() returns the number of characters *not counting the
> NUL terminator*. So it can be a maximum of MAX_WPA_IE_LEN - 1.
>
> regards,
> dan carpenter
TIL :)
Would the better approach be to just remove the loop or break when n ==
MAX_WPA_IE_LEN - 1.
regards,
rohit
More information about the devel
mailing list