You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At line [email protected], snprintf is returning the number of characters that should have been written to the buffer, not the actual written characters.
The returned value needs to be checked against the buflen limit.
This should be enough for a fast fix:
if(nwritten >= ls->buflen)
nwritten = ls->buflen - 1;
The text was updated successfully, but these errors were encountered:
At line [email protected], snprintf is returning the number of characters that should have been written to the buffer, not the actual written characters.
The returned value needs to be checked against the buflen limit.
This should be enough for a fast fix:
if(nwritten >= ls->buflen)
nwritten = ls->buflen - 1;
The text was updated successfully, but these errors were encountered: