fix possible format string exploit if packet dumping enabled

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig 2022-09-10 12:50:32 +02:00
parent f418ae6128
commit b19f8a6046
No known key found for this signature in database
GPG Key ID: 22C5333D922537D2

View File

@ -116,7 +116,7 @@ void hexdump(msg_info msg_info, const char *mem, unsigned int len)
} }
str[c++] = '\n'; str[c++] = '\n';
str[c++] = 0; str[c++] = 0;
print_message(msg_info, str); print_message(msg_info, "%s", str);
c = 0; c = 0;
} }
} }