summaryrefslogtreecommitdiffstats
path: root/bin/sh/redir.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2014-03-14 21:35:16 +0000
committerneel <neel@FreeBSD.org>2014-03-14 21:35:16 +0000
commit79059ce446fd88058babca9eb9b0b3ff2c9e4424 (patch)
tree63a103f1d987e5c89f26c319b4f10ad89ec20bd6 /bin/sh/redir.c
parent4ece58fc6a7c5c9df5d280cb1bbe0b3d6aa2fa57 (diff)
downloadFreeBSD-src-79059ce446fd88058babca9eb9b0b3ff2c9e4424.zip
FreeBSD-src-79059ce446fd88058babca9eb9b0b3ff2c9e4424.tar.gz
Fix an issue with ktrdump(8) where it would not print all entries in the
KTR buffer. This happens when 'i' tries to wrap around from 0 to 'entries - 1'. Since 'i' is a signed integer the modulo operation actually returns a negative number. Fix this by computing the next index to use "by hand" instead of relying on the modulo operator.
Diffstat (limited to 'bin/sh/redir.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud