From 7d433629cf577e9a0f9b219f2da9c2507b8e1e6e Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Sat, 3 Oct 2026 14:59:16 +0200 Subject: [PATCH] logind: fix one-byte buffer overflow ... in `inhibit_what_to_string()`. Add missing colon with `handle-reboot-key`. (cherry picked from commit 458c5ce35cf9c2057d4516b0298b83c84118b75d) --- src/login/logind-inhibit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c index 99ec0a3c99..0420a2c3f2 100644 --- a/src/login/logind-inhibit.c +++ b/src/login/logind-inhibit.c @@ -460,7 +460,7 @@ const char* inhibit_what_to_string(InhibitWhat w) { "handle-suspend-key:" "handle-hibernate-key:" "handle-lid-switch:" - "handle-reboot-key")+1]; + "handle-reboot-key:")+1]; char *p; if (!inhibit_what_is_valid(w))