Konstantin Belousov 15fb32c07d Do not underflow the buffer and then report the problem. Check for the
condition before the buffer write.
Also, since buflen is unsigned, previous check was ignored.

Reviewed by:	marcus
Tested by:	pho
2009-03-20 11:08:57 +00:00
..
2008-11-29 14:32:14 +00:00
2008-09-23 14:25:56 +00:00
2008-11-27 04:40:37 +00:00
2008-09-22 10:37:02 +00:00
2009-03-11 08:19:31 +00:00