[PATCH] ieee802_1x: remove useless NULL terminations
j at w1.fi
Sat Aug 4 05:08:22 EDT 2012
On Thu, Jul 05, 2012 at 05:21:07PM +0300, Baruch Siach wrote:
> snprintf() is guaranteed to terminate its destination string.
Some snprintf() implementations may indeed do that, but not all.. For
example, _snprintf() in Visual Studio does not (or at least did not in
some versions) do that. There is even a following note on this in
documentation: "This function does not guarantee NULL termination, so
ensure it is followed by sz[ ARRAYSIZE(sz) - 1] = 0."
Jouni Malinen PGP id EFC895FA
More information about the HostAP