summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-01 15:09:50 +0200
committerGitHub <noreply@github.com>2022-05-01 15:09:50 +0200
commitb5b78f383638eebc83fee7d964c08ce2599b0c06 (patch)
treea2e1db1559689a97d16d05cf5680a01cfef2ae5c
parent0132e52b1351a93fd7017e9653caa4aab419ca87 (diff)
parent58f13efa30983e6934128de215293c8f91efe3ae (diff)
Merge pull request #59 from jwijenbergh/main
Hyprctrl: Use printf format specifiers for the usage string
-rw-r--r--hyprctl/main.cpp4
1 files 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;
}