fix condition string lengths

Signed-off-by: Robert Andersson <robert.m.andersson@se.atlascopco.com>
This commit is contained in:
Robert Andersson committed 2018-10-22 12:51:58 +02:00
1 parent d371b85c47
commit b64dbbf8d0
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ static int do_restart(char *arg) { return do_startstop(INIT_CMD_RESTART_SVC, arg
static void show_cond_one(const char *_conds)
{
static char conds[MAX_ARG_LEN];
static char conds[MAX_COND_LEN];
char *cond;
strlcpy(conds, _conds, sizeof(conds));