From c8c2151c607a036ddfc790f5f70237ab984266aa Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 1 May 2024 19:55:49 +0100 Subject: [PATCH] header: use formatting for ::error() --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 070c082..7f23081 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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