header: use formatting for ::error()

This commit is contained in:
Vaxry 2024-05-01 19:55:49 +01:00
parent 9e7a3b3139
commit c8c2151c60

View file

@ -282,7 +282,7 @@ class {} {{
// send an error // send an error
void error(uint32_t error, const std::string& message) {{ void error(uint32_t error, const std::string& message) {{
wl_resource_post_error(pResource, error, message.c_str()); wl_resource_post_error(pResource, error, "%s", message.c_str());
}} }}
// send out of memory // send out of memory