From 10e60566c886017a6d8ec2a2e0c5b693dba013bb Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sun, 17 Feb 2008 19:28:54 +0000 Subject: Enforce range in search (use default non-zero value if not given in magic file). Rename str_count to str_range for clarity. Improve exegetical comment in file_strncmp. --- src/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/print.c') diff --git a/src/print.c b/src/print.c index fd2a8b84..c41e71ea 100644 --- a/src/print.c +++ b/src/print.c @@ -41,7 +41,7 @@ #include #ifndef lint -FILE_RCSID("@(#)$File: print.c,v 1.62 2008/02/04 20:51:17 christos Exp $") +FILE_RCSID("@(#)$File: print.c,v 1.63 2008/02/17 19:28:54 rrt Exp $") #endif /* lint */ #define SZOF(a) (sizeof(a) / sizeof(a[0])) @@ -89,8 +89,8 @@ file_mdump(struct magic *m) if (m->str_flags & REGEX_OFFSET_START) (void) fputc(CHAR_REGEX_OFFSET_START, stderr); } - if (m->str_count) - (void) fprintf(stderr, "/%u", m->str_count); + if (m->str_range) + (void) fprintf(stderr, "/%u", m->str_range); } else { if ((m->mask_op & FILE_OPS_MASK) < SZOF(optyp)) -- cgit v1.2.1