cvs commit: src/bin/sh input.c

Stefan Farfeleder stefanf at
Sat Apr 29 10:29:12 UTC 2006

stefanf     2006-04-29 10:29:10 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               input.c 
  Check the buffer size when copying the line returned by el_gets() into our
  own buffer.  Interactively typing in long lines (>1023 characters)
  previously overflowed the buffer.  Unlike the NetBSD people I don't see the
  need to subtract 8 from BUFSIZ, so I just used BUFSIZ-1.
  Obtained from:  NetBSD
  PR:             91110
  Revision  Changes    Path
  1.23      +13 -4     src/bin/sh/input.c

More information about the cvs-src mailing list