cvs commit: src/sys/ddb db_input.c

Robert Watson rwatson at FreeBSD.org
Fri Mar 7 13:13:18 UTC 2008


rwatson     2008-03-07 13:13:18 UTC

  FreeBSD src repository

  Modified files:
    sys/ddb              db_input.c 
  Log:
  Reserve two bytes at the end of the DDB input line in db_readline() to
  hold the newline and nul terminator.  Otherwise, there are cases where
  garbage may end up in the command history due to a lack of a nul
  terminator, or input may end up without room for a newline.
  
  MFC after:      3 days
  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd at plass-family.net>
  
  Revision  Changes    Path
  1.39      +4 -1      src/sys/ddb/db_input.c


More information about the cvs-all mailing list