fixing C/C++ CI errors
This commit is contained in:
@@ -82,7 +82,7 @@ static void debug_hex(const char* label, const uint8_t* data, size_t len)
|
||||
static constexpr char log_category_prefix[] = "CarrotCrypto ";
|
||||
char hex[130] = {0};
|
||||
for (size_t i = 0; i < len && i < 64; ++i) {
|
||||
sprintf(hex + i*2, "%02x", data[i]);
|
||||
snprintf(hex + i*2, 3, "%02x", data[i]);
|
||||
}
|
||||
LOGINFO(6, label << ": " << static_cast<const char*>(hex));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user