diff options
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index e3be688c84..9ef29fe01d 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -200,7 +200,7 @@ bytestring_to_str(wmem_allocator_t *scope, const guint8 *ad, const guint32 len, } char * -bytes_to_str(wmem_allocator_t *allocator, const guint8 *bd, int bd_len) +bytes_to_str(wmem_allocator_t *scope, const guint8 *bd, int bd_len) { gchar *cur; gchar *cur_ptr; @@ -209,7 +209,7 @@ bytes_to_str(wmem_allocator_t *allocator, const guint8 *bd, int bd_len) if (!bd) REPORT_DISSECTOR_BUG("Null pointer passed to bytes_to_str()"); - cur=(gchar *)wmem_alloc(allocator, MAX_BYTE_STR_LEN+3+1); + cur=(gchar *)wmem_alloc(scope, MAX_BYTE_STR_LEN+3+1); if (bd_len <= 0) { cur[0] = '\0'; return cur; } if (bd_len > MAX_BYTE_STR_LEN/2) { /* bd_len > 24 */ |