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
..
2011-06-13 21:03:27 +00:00
2012-01-21 20:39:17 +00:00
2016-04-09 14:24:17 +00:00
2015-08-15 19:58:00 +00:00
2011-06-13 21:03:27 +00:00
2012-01-25 08:42:19 +00:00
2011-02-08 23:18:06 +00:00
2013-08-24 20:06:00 +00:00
2011-06-13 21:03:27 +00:00
2015-10-25 17:17:50 +00:00
2016-04-09 14:09:14 +00:00
2011-06-13 21:03:27 +00:00
2010-12-21 20:47:06 +00:00
2011-04-23 22:28:56 +00:00
2015-09-13 13:43:08 +00:00
2013-09-04 22:10:16 +00:00
2015-08-15 19:58:00 +00:00
2012-07-15 10:19:43 +00:00
2016-04-09 14:09:14 +00:00
2014-12-29 15:33:20 +00:00
2012-09-15 21:56:30 +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
2013-09-02 21:57:46 +00:00
2010-10-13 04:01:01 +00:00
2013-09-04 22:10:16 +00:00
2012-01-01 22:17:12 +00:00
2014-03-09 17:04:31 +00:00
2016-04-09 14:09:14 +00:00
2016-04-09 14:09:14 +00:00
2013-05-03 15:28:31 +00:00
2012-05-24 19:48:15 +00:00
2015-12-27 17:53:39 +00:00
2013-02-07 22:42:33 +00:00
2011-06-17 13:03:49 +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
2013-04-07 16:28:36 +00:00
2014-03-09 17:04:31 +00:00
2012-09-08 19:24:03 +00:00
2011-06-18 23:43:28 +00:00
2013-07-25 13:09:17 +00:00
2012-12-12 22:01:10 +00:00
2016-06-08 01:17:22 +00:00
2015-10-25 17:17:50 +00:00
2015-09-13 13:43:08 +00:00
2013-08-16 20:24:41 +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
2016-04-09 14:24:17 +00:00
2014-03-09 17:04:31 +00:00
2015-12-23 18:24:40 +00:00
2014-03-09 17:04:31 +00:00