OK, *this* isn't a possibly-infinite loop.
authorGuy Harris <guy@alum.mit.edu>
Wed, 26 Dec 2012 06:39:53 +0000 (06:39 -0000)
committerGuy Harris <guy@alum.mit.edu>
Wed, 26 Dec 2012 06:39:53 +0000 (06:39 -0000)
svn path=/trunk/; revision=46755

epan/dissectors/packet-acn.c

index 9e5263383166362c3094e835b04758f9632e39ef..41740596a079451e5736e28dfb037adc5b9bffff 100644 (file)
@@ -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++ =  ' ';
         }