summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcschr.c
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2016-06-01 16:56:29 +0000
committertruckman <truckman@FreeBSD.org>2016-06-01 16:56:29 +0000
commit1a924c729cc82916157766dbb0389b73fd4a79d8 (patch)
tree9dab08aa960ea81e17907e7854998309275f2b4c /lib/libc/string/wcschr.c
parent80c4320260a7e9b4a0152b24deefd4ddf4c66118 (diff)
downloadFreeBSD-src-1a924c729cc82916157766dbb0389b73fd4a79d8.zip
FreeBSD-src-1a924c729cc82916157766dbb0389b73fd4a79d8.tar.gz
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
Diffstat (limited to 'lib/libc/string/wcschr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud