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 */