Remove comment to myself that I forgot to remove before commiting r35253
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 23 Dec 2010 18:24:39 +0000 (18:24 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 23 Dec 2010 18:24:39 +0000 (18:24 +0000)
and change comments to fit within 80 column display.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35255 f5534014-38df-0310-8fa8-9805f1628bb7

epan/tvbuff.c

index c6bec158f422c592fa2c7a72c1cb901bd4affb16..0f0d154df4e3f612e32b4859120905f0c8f89004 100644 (file)
@@ -2384,21 +2384,24 @@ tvb_get_ephemeral_unicode_stringz(tvbuff_t *tvb, const gint offset, gint *length
 
        size = tvb_unicode_strsize(tvb, offset);
 
-       for(i = 0; i < size; i += 2) { /* XXX - make <= ??? */
+       for(i = 0; i < size; i += 2) {
 
                if(encoding == ENC_BIG_ENDIAN)
                        uchar = tvb_get_ntohs(tvb, offset + i);
                else
                        uchar = tvb_get_letohs(tvb, offset + i);
 
-               /* Calculate how much space is needed to store UTF-16 character in UTF-8 */
+               /* Calculate how much space is needed to store UTF-16 character
+                * in UTF-8 */
                tmpbuf_len = g_unichar_to_utf8(uchar, NULL);
 
-               tmpbuf = g_malloc(tmpbuf_len + 1); /* + 1 to make room for null terminator */
+               tmpbuf = g_malloc(tmpbuf_len + 1); /* + 1 to make room for null
+                                                   * terminator */
 
                g_unichar_to_utf8(uchar, tmpbuf);
 
-               /* NULL terminate the tmpbuf so ep_strbuf_append knows where to stop */
+               /* NULL terminate the tmpbuf so ep_strbuf_append knows where
+                * to stop */
                tmpbuf[tmpbuf_len] = '\0';
 
                ep_strbuf_append(strbuf, tmpbuf);