]> granicus.if.org Git - file/commitdiff
fix name
authorChristos Zoulas <christos@zoulas.com>
Tue, 11 Dec 2018 21:10:33 +0000 (21:10 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 11 Dec 2018 21:10:33 +0000 (21:10 +0000)
src/magic.c

index 4f85676fe4196e31a5455448afecd4ac5f26d9c9..8858685570bdebeec1b21cff5a7540972776301e 100644 (file)
@@ -33,7 +33,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: magic.c,v 1.107 2018/12/11 14:41:11 christos Exp $")
+FILE_RCSID("@(#)$File: magic.c,v 1.108 2018/12/11 21:10:33 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_regex_max = (uint16_t)*(const size_t *)val;
+               ms->regex_max = (uint16_t)*(const size_t *)val;
                return 0;
        case MAGIC_PARAM_BYTES_MAX:
                ms->bytes_max = *(const size_t *)val;