diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-26 06:39:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-26 06:39:53 +0000 |
commit | 229ec8c5453c26e71899b84429e121fea38e1154 (patch) | |
tree | 984bc22b47f77d5fb19178b6a01ee91585f0f9cc /epan/dissectors/packet-acn.c | |
parent | 34633f5fe35f2f0e60156a62d504abfe78eb8197 (diff) |
OK, *this* isn't a possibly-infinite loop.
svn path=/trunk/; revision=46755
Diffstat (limited to 'epan/dissectors/packet-acn.c')
-rw-r--r-- | epan/dissectors/packet-acn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-acn.c b/epan/dissectors/packet-acn.c index 9e52633831..41740596a0 100644 --- a/epan/dissectors/packet-acn.c +++ b/epan/dissectors/packet-acn.c @@ -2068,9 +2068,9 @@ dissect_acn_dmx_data_pdu(guint32 protocol_id, tvbuff_t *tvb, packet_info *pinfo, g_snprintf(buffer, BUFFER_SIZE, "%-10s: ", "Data..."); buf_ptr += 9; - for (x=1; x<=perline; x++) { - buf_ptr = ltos((guint8)x, buf_ptr, 10, ' ', min_char, FALSE); - if (x==halfline) { + for (x=0; x<perline; x++) { + buf_ptr = ltos((guint8)(x+1), buf_ptr, 10, ' ', min_char, FALSE); + if ((x+1)==halfline) { *buf_ptr++ = '|'; *buf_ptr++ = ' '; } |