HomeFreeBSD

The (i < PROMPTLEN - 1) test added by r300442 in the code for the default

Description

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

Details

Provenance
truckmanAuthored on
Reviewer
cem
Parents
rS301138: sed(1): Fix a mismatch and sync with the OpenBSD's commit.
Branches
Unknown
Tags
Unknown