mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix snprintf compiler warning in hexdump BIF
This commit is contained in:
parent
50d91b17de
commit
99faaf811d
1 changed files with 1 additions and 1 deletions
|
@ -1097,7 +1097,7 @@ function hexdump%(data_str: string%) : string
|
|||
{
|
||||
char offset[5];
|
||||
snprintf(offset, sizeof(offset),
|
||||
"%.4x", data_ptr - data);
|
||||
"%.4tx", data_ptr - data);
|
||||
memcpy(hex_data_ptr, offset, 4);
|
||||
hex_data_ptr += 6;
|
||||
ascii_ptr = hex_data_ptr + 50;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue