YIN parser CHANGE simplify copying of the tested string
parsed revision date is checked and its copying into a constant-size
buffer can be simplified by memcpy().
@@ -1711,7 +1711,7 @@ yin_parse_revision(struct lys_yin_parser_ctx *ctx, struct lysp_revision **revs)
FREE_STRING(ctx->xmlctx->ctx, temp_date);
return LY_EVALID;
}
- strncpy(rev->date, temp_date, LY_REV_SIZE);
+ memcpy(rev->date, temp_date, LY_REV_SIZE);
FREE_STRING(ctx->xmlctx->ctx, temp_date);
/* parse content */
