brian b5a9006bf0 Fix an off by one error when we limit append/prepend text sizes based on our
internal buffer sizes.

When we 'append', assume we're appending to text.  Some MS dhcp servers will
give us a string with the length including the trailing NUL.  when we 'append
domain-name', we get something like "search x.y\000 z" in resolv.conf :(

MFC after:	1 week
Security:	A buffer overflow (by one NUL byte) was possible.
2009-06-08 21:42:30 +00:00
..
2008-11-05 09:28:30 +00:00
2008-12-24 11:12:21 +00:00
2009-03-08 18:02:30 +00:00
2009-06-03 09:23:31 +00:00
2008-09-27 00:09:10 +00:00
2009-06-05 03:06:24 +00:00
2007-07-03 12:46:08 +00:00
2009-01-11 22:36:45 +00:00
2009-01-31 13:48:15 +00:00
2009-04-14 23:05:36 +00:00
2008-09-29 05:31:27 +00:00