Change-Id: Ie414d28415b71a79780d37fae454b90a7a610e1c
Reviewed-on: https://code.wireshark.org/review/6475
Reviewed-by: Michael Mann <mmann78@netscape.net>
}
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;
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 */
* @param bd_len The length of the byte array
* @return A pointer to the formatted string
*/
-WS_DLL_PUBLIC char *bytes_to_str(wmem_allocator_t *allocator, const guint8 *bd, int bd_len);
+WS_DLL_PUBLIC char *bytes_to_str(wmem_allocator_t *scope, const guint8 *bd, int bd_len);
/** Turn an array of bytes into a string showing the bytes in hex,
* separated by a punctuation character.