summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2008-02-17 19:28:54 +0000
committerReuben Thomas <rrt@sc3d.org>2008-02-17 19:28:54 +0000
commit10e60566c886017a6d8ec2a2e0c5b693dba013bb (patch)
tree11266b09d2ed0b505afbdc936793008f27e42f89 /src/print.c
parent0c5a6575c30d0a79ad3be32c2b9ac75ee01481e9 (diff)
downloadfile-git-10e60566c886017a6d8ec2a2e0c5b693dba013bb.tar.gz
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.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c6
1 files changed, 3 insertions, 3 deletions
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 <time.h>
#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))