truckman 1a924c729c 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
MFC after:	1 week
2016-06-01 16:56:29 +00:00
..
2016-01-24 17:01:34 +00:00
2016-03-06 17:24:02 +00:00
2016-03-06 17:24:02 +00:00
MFH
2016-03-02 23:53:08 +00:00
2014-05-09 13:27:30 +00:00
2016-01-03 21:30:22 +00:00