Introduce strterm(), hard-add terminating '\0' at end of buffer

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-01-07 03:02:39 +01:00
1 parent 55c49a0bf0
commit 212083b922
3 files changed
+14 -6

No files matched your search

+1 -2
View File
@@ -90,8 +90,7 @@ struct init_request {
int cmd; /* What kind of request */
int runlevel; /* Runlevel to change to */
int sleeptime; /* Time between TERM and KILL */
char data[367];
char data_guard; /* Forced to '\0' by Finit */
char data[368];
};
extern int runlevel;