Skip to content

Commit

Permalink
Update uat.h
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersBroman committed Sep 7, 2022
1 parent 1ebb0e2 commit 0cbf8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epan/uat.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static void basename ## _ ## field_name ## _tostr_cb(void* rec, char** out_ptr,
*/
#define UAT_BUFFER_CB_DEF(basename,field_name,rec_t,ptr_element,len_element) \
static void basename ## _ ## field_name ## _set_cb(void* rec, const char* buf, guint len, const void* UNUSED_PARAMETER(u1), const void* UNUSED_PARAMETER(u2)) {\
uchar* new_buf = len ? (char *)g_memdup2(buf,len) : NULL; \
unsigned char* new_buf = len ? (char *)g_memdup2(buf,len) : NULL; \
g_free((((rec_t*)rec)->ptr_element)); \
(((rec_t*)rec)->ptr_element) = new_buf; \
(((rec_t*)rec)->len_element) = len; } \
Expand Down

0 comments on commit 0cbf8ea

Please sign in to comment.