mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Edit tests to adjust with changes in libxml2 upgrade" into main
This commit is contained in:
@@ -70,6 +70,7 @@ namespace {
|
||||
std::string substitute(const char* fmt, const char* param) {
|
||||
std::string buffer(static_cast<size_t>(strlen(fmt) + strlen(param)), '\0');
|
||||
snprintf(buffer.data(), buffer.size(), fmt, param);
|
||||
buffer.resize(strlen(buffer.c_str()));
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user