tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: snprintf(3) behaviour regarding large "n"

And, finally:

 |Log Message:
 |Return EOVERFLOW like FreeBSD does if the buffer size exceeds INT_MAX
 |(well FreeBSD documents INT_MAX + 1, but in the code it is INT_MAX).

hm, ok, yes S-nail without the fix doesn't print the Message-Id:
even on FreeBSD, but at least the buffer is terminated at [0] and
thus no binary garbage is printed when the buffer is printed.


Home | Main Index | Thread Index | Old Index