aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2010-12-23 18:26:25 +0000
committerStephen Fisher <steve@stephen-fisher.com>2010-12-23 18:26:25 +0000
commite9f3d27b4ae6ce7d3a46c1756bec686cb15b7225 (patch)
treed010da41075b872185ff4d6913d3edb70c7c9921 /epan/tvbuff.c
parentf0029fd060706112d58aa44d40a05c0dd35d74e2 (diff)
Add a couple more comments to new unicode function to remind us when a
variable is counting UTF-16 characters vs. normal bytes. svn path=/trunk/; revision=35256
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 0f0d154df4..220beaaa14 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -1965,7 +1965,7 @@ tvb_unicode_strsize(tvbuff_t *tvb, const gint offset)
i += 2;
} while(uchar != 0);
- return i;
+ return i; /* Number of *UTF-16* characters */
}
/* Find length of string by looking for end of string ('\0'), up to
@@ -2410,7 +2410,7 @@ tvb_get_ephemeral_unicode_stringz(tvbuff_t *tvb, const gint offset, gint *length
}
if(lengthp)
- *lengthp = i;
+ *lengthp = i; /* Number of *bytes* processed */
return strbuf->str;
}