header: use formatting for ::error()

This commit is contained in:
Vaxry 2024-05-01 19:55:49 +01:00
parent 9e7a3b3139
commit c8c2151c60
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class {} {{
// send an error
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