mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Fix Coverity CID 265222, guard init_request::data member
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ae9ed20d94
commit
7bf2fcb6e3
3 files changed
+7
-2
No files matched your search
+3
-1
@@ -84,12 +84,14 @@
|
||||
#define INIT_CMD_NACK 254
|
||||
#define INIT_CMD_ACK 255
|
||||
|
||||
/* Traditionally aligned on 384 bytes */
|
||||
struct init_request {
|
||||
int magic; /* Magic number */
|
||||
int cmd; /* What kind of request */
|
||||
int runlevel; /* Runlevel to change to */
|
||||
int sleeptime; /* Time between TERM and KILL */
|
||||
char data[368];
|
||||
char data[367];
|
||||
char data_guard; /* Forced to '\0' by Finit */
|
||||
};
|
||||
|
||||
extern int runlevel;
|
||||
|
||||
Reference in new issue
Block a user