-/* $OpenBSD: magic-load.c,v 1.4 2015/04/25 21:17:09 nicm Exp $ */
+/* $OpenBSD: magic-load.c,v 1.5 2015/05/29 14:15:41 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
if (ml->test_not || ml->test_operator == 'x')
return (1);
- n = 20;
+ n = 2 * MAGIC_STRENGTH_MULTIPLIER;
switch (ml->type) {
case MAGIC_TYPE_NONE:
case MAGIC_TYPE_DEFAULT:
-/* $OpenBSD: magic.h,v 1.5 2015/04/24 16:24:11 nicm Exp $ */
+/* $OpenBSD: magic.h,v 1.6 2015/05/29 14:15:41 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
#include <string.h>
#define MAGIC_STRING_SIZE 31
-#define MAGIC_STRENGTH_MULTIPLIER 20
+#define MAGIC_STRENGTH_MULTIPLIER 10
enum magic_type {
MAGIC_TYPE_NONE = 0,