header: use formatting for ::error()
This commit is contained in:
parent
9e7a3b3139
commit
c8c2151c60
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue