mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
systemctl: set string table size for safety
This commit is contained in:
@@ -4927,7 +4927,7 @@ typedef enum SystemctlShowMode{
|
||||
_SYSTEMCTL_SHOW_MODE_INVALID = -1,
|
||||
} SystemctlShowMode;
|
||||
|
||||
static const char* const systemctl_show_mode_table[] = {
|
||||
static const char* const systemctl_show_mode_table[_SYSTEMCTL_SHOW_MODE_MAX] = {
|
||||
[SYSTEMCTL_SHOW_PROPERTIES] = "show",
|
||||
[SYSTEMCTL_SHOW_STATUS] = "status",
|
||||
[SYSTEMCTL_SHOW_HELP] = "help",
|
||||
|
||||
Reference in New Issue
Block a user