Merge pull request #59 from jwijenbergh/main

Hyprctrl: Use printf format specifiers for the usage string
This commit is contained in:
vaxerski 2022-05-01 15:09:50 +02:00 committed by GitHub
commit b5b78f3836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}