aboutsummaryrefslogtreecommitdiff
path: root/fesvr/htif.cc
diff options
context:
space:
mode:
Diffstat (limited to 'fesvr/htif.cc')
-rw-r--r--fesvr/htif.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fesvr/htif.cc b/fesvr/htif.cc
index c989cd1..30b13de 100644
--- a/fesvr/htif.cc
+++ b/fesvr/htif.cc
@@ -178,7 +178,7 @@ void htif_t::stop()
for (addr_t i = 0; i < sig_len; i += line_size)
{
for (addr_t j = line_size; j > 0; j--)
- if (i+j < sig_len)
+ if (i+j <= sig_len)
sigs << std::setw(2) << (uint16_t)buf[i+j-1];
else
sigs << std::setw(2) << (uint16_t)0;