From: Christos Zoulas Date: Tue, 11 Dec 2018 14:41:11 +0000 (+0000) Subject: fix cut-n-pasto for regex_max (Vsevolod Stakhov) X-Git-Tag: FILE5_36~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48052fcf83c5d9ce579101f28bc508f396b009ad;p=file fix cut-n-pasto for regex_max (Vsevolod Stakhov) --- diff --git a/src/magic.c b/src/magic.c index 7f469c59..4f85676f 100644 --- a/src/magic.c +++ b/src/magic.c @@ -33,7 +33,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: magic.c,v 1.106 2018/10/01 18:45:39 christos Exp $") +FILE_RCSID("@(#)$File: magic.c,v 1.107 2018/12/11 14:41:11 christos Exp $") #endif /* lint */ #include "magic.h" @@ -604,7 +604,7 @@ magic_setparam(struct magic_set *ms, int param, const void *val) ms->elf_notes_max = (uint16_t)*(const size_t *)val; return 0; case MAGIC_PARAM_REGEX_MAX: - ms->elf_notes_max = (uint16_t)*(const size_t *)val; + ms->elf_regex_max = (uint16_t)*(const size_t *)val; return 0; case MAGIC_PARAM_BYTES_MAX: ms->bytes_max = *(const size_t *)val;