truckman 13f6239c05 MFC r301139
The (i < PROMPTLEN - 1) test added by r300442 in the code for the default
case of \c in the prompt format string is a no-op.  We already passed
this test at the top of the loop, and i has not yet been incremented in
this path.  Change this test to (i < PROMPTLEN - 2).

Reported by:	Coverity
CID:		1008328
Reviewed by:	cem
Differential Revision:	https://reviews.freebsd.org/D6552
2016-06-08 01:17:22 +00:00
..
2015-09-13 13:43:08 +00:00
2014-12-29 15:33:20 +00:00
2014-03-09 17:04:31 +00:00
2013-07-25 15:08:41 +00:00
2015-09-13 13:43:08 +00:00
2012-01-01 22:17:12 +00:00
2014-03-09 17:04:31 +00:00
2014-03-09 17:04:31 +00:00
2014-03-09 17:04:31 +00:00
2013-04-07 16:28:36 +00:00
2014-03-09 17:04:31 +00:00
2011-06-18 23:43:28 +00:00
2016-06-08 01:17:22 +00:00
2015-09-13 13:43:08 +00:00
2016-06-01 17:29:15 +00:00
2013-07-25 19:48:15 +00:00
2014-03-09 17:04:31 +00:00
2009-12-24 18:41:14 +00:00
2013-07-25 15:08:41 +00:00
2014-03-09 17:04:31 +00:00
2014-03-09 17:04:31 +00:00