aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-16 02:31:45 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-16 02:31:45 +0100
commiteb3660a4d81ede493943c13cba959ea061f2d536 (patch)
tree7b586f3032ed0e43bb13bd07b1d79f2abba80489
parentebd8c2726b8caac6adc00cf15c5631e51d05ba1f (diff)
Add fstack-protector-all to gsr-global-hotkeys
-rw-r--r--meson.build3
-rw-r--r--tools/gsr-global-hotkeys/main.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 9aacae9..b83070c 100644
--- a/meson.build
+++ b/meson.build
@@ -68,6 +68,7 @@ executable(
'tools/gsr-global-hotkeys/keyboard_event.c',
'tools/gsr-global-hotkeys/main.c'
],
+ c_args : '-fstack-protector-all',
install : true
)
@@ -80,4 +81,4 @@ endif
if get_option('capabilities') == true
meson.add_install_script('meson_post_install.sh')
-endif \ No newline at end of file
+endif
diff --git a/tools/gsr-global-hotkeys/main.c b/tools/gsr-global-hotkeys/main.c
index 1be7f2d..1b2dc4a 100644
--- a/tools/gsr-global-hotkeys/main.c
+++ b/tools/gsr-global-hotkeys/main.c
@@ -9,7 +9,7 @@
typedef struct {
uint32_t key;
- uint32_t modifiers; /* modkeys */
+ uint32_t modifiers; /* keyboard_modkeys bitmask */
const char *action;
} global_hotkey;