Hyprctrl: Use printf format specifiers for the usage string

This commit is contained in:
jwijenbergh 2022-05-01 14:59:15 +02:00
parent 0132e52b13
commit 58f13efa30
No known key found for this signature in database
GPG key ID: 1A2298F6C34F96E5

View file

@ -132,7 +132,7 @@ int main(int argc, char** argv) {
int bflag = 0, sflag = 0, index, c; int bflag = 0, sflag = 0, index, c;
if (argc < 2) { if (argc < 2) {
printf(USAGE.c_str()); printf("%s", USAGE.c_str());
return 1; 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], "keyword")) keywordRequest(argc, argv);
else if (!strcmp(argv[1], "--batch")) batchRequest(argc, argv); else if (!strcmp(argv[1], "--batch")) batchRequest(argc, argv);
else { else {
printf(USAGE.c_str()); printf("%s", USAGE.c_str());
return 1; return 1;
} }