aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbtest.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-21 17:37:31 +0000
committerEvan Huus <eapache@gmail.com>2013-09-21 17:37:31 +0000
commit9afac168a7a5e1ba69c647f389fc2e61697eb4f9 (patch)
tree689d9a2c37c0b0d56e0b1390f31bb6bd47d6bed5 /epan/tvbtest.c
parent6df83e8078aafe6b6dfa03cf1abc33cde0f6612d (diff)
Update to tvb_g_memdup in tvb test suite.
svn path=/trunk/; revision=52165
Diffstat (limited to 'epan/tvbtest.c')
-rw-r--r--epan/tvbtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/tvbtest.c b/epan/tvbtest.c
index 0ba1a33ef2..64c58d2f98 100644
--- a/epan/tvbtest.c
+++ b/epan/tvbtest.c
@@ -252,10 +252,10 @@ test(tvbuff_t *tvb, gchar* name,
}
/* Sweep across data in various sized increments checking
- * tvb_memdup() */
+ * tvb_g_memdup() */
for (incr = 1; incr < length; incr++) {
for (i = 0; i < length - incr; i += incr) {
- ptr = tvb_memdup(tvb, i, incr);
+ ptr = tvb_g_memdup(tvb, i, incr);
if (memcmp(ptr, &expected_data[i], incr) != 0) {
printf("11: Failed TVB=%s Offset=%d Length=%d "
"Bad memdup\n",
@@ -269,7 +269,7 @@ test(tvbuff_t *tvb, gchar* name,
}
/* One big memdup */
- ptr = tvb_memdup(tvb, 0, -1);
+ ptr = tvb_g_memdup(tvb, 0, -1);
if (memcmp(ptr, expected_data, length) != 0) {
printf("12: Failed TVB=%s Offset=0 Length=-1 "
"Bad memdup\n", name);