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:
committed by
Luca Boccassi
parent
ea634edbb5
commit
7d433629cf
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user