From 58f13efa30983e6934128de215293c8f91efe3ae Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Sun, 1 May 2022 14:59:15 +0200 Subject: [PATCH] Hyprctrl: Use printf format specifiers for the usage string --- hyprctl/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 6a9a9bda..4529fd31 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -132,7 +132,7 @@ int main(int argc, char** argv) { int bflag = 0, sflag = 0, index, c; if (argc < 2) { - printf(USAGE.c_str()); + printf("%s", USAGE.c_str()); return 1; } @@ -146,7 +146,7 @@ int main(int argc, char** argv) { else if (!strcmp(argv[1], "keyword")) keywordRequest(argc, argv); else if (!strcmp(argv[1], "--batch")) batchRequest(argc, argv); else { - printf(USAGE.c_str()); + printf("%s", USAGE.c_str()); return 1; }