]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r218411:
authorjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 17 Aug 2011 15:22:58 +0000 (15:22 +0000)
committerjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 17 Aug 2011 15:22:58 +0000 (15:22 +0000)
commit0880eaf506520bc619e74f8893728b6887a9939d
treec875eb72ecf388a94c3cbf30908f58dfa34d4a62
parentfef25bbe73b8984b463fa21945d0655307aacfa2
MFC r218411:

- Use LINE_MAX from limits.h as the maximum line length instead of
  BUFSIZ. Use LINE_MAX * 2 as the buffer size (BSIZE).
- Error out if we encounter a line longer than LINE_MAX. The previous
  behavior was to silently split long lines and produce corrupted
  output.

PR: bin/151384

git-svn-id: svn://svn.freebsd.org/base/stable/8@224945 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/rs/rs.c