logind: fix one-byte buffer overflow

... in `inhibit_what_to_string()`.

Add missing colon with `handle-reboot-key`.

(cherry picked from commit 458c5ce35cf9c2057d4516b0298b83c84118b75d)
This commit is contained in:
Siteshwar Vashisht
2026-10-16 11:36:32 +01:00
committed by Luca Boccassi
parent ea634edbb5
commit 7d433629cf
+1 -1
View File
@@ -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))