commit | b425bb3314dd015ede47c2589897e49072feb3c9 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 08 10:49:36 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 08 11:02:16 2022 +0100 |
tree | 97191949a0d53e84a9c1032560ec91098b80fbaa | |
parent | fbd037cec60f810028b694b57d2975b39a931b1f [diff] [blame] |
parser common BUGFIX proper revision date length check
diff --git a/src/parser_common.c b/src/parser_common.c index 809ed86..54910b2 100644 --- a/src/parser_common.c +++ b/src/parser_common.c
@@ -1668,7 +1668,7 @@ LY_ARRAY_NEW_RET(PARSER_CTX(ctx), *revs, rev, LY_EMEM); /* store date */ - LY_CHECK_RET(lysp_check_date(ctx, stmt->arg, LY_REV_SIZE - 1, "revision")); + LY_CHECK_RET(lysp_check_date(ctx, stmt->arg, strlen(stmt->arg), "revision")); strcpy(rev->date, stmt->arg); /* parse substatements */