projects
/
file
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b4bc17
)
Off by one in the continuation flushing part.
author
Christos Zoulas
<christos@zoulas.com>
Wed, 31 Dec 2003 18:36:22 +0000
(18:36 +0000)
committer
Christos Zoulas
<christos@zoulas.com>
Wed, 31 Dec 2003 18:36:22 +0000
(18:36 +0000)
src/softmagic.c
patch
|
blob
|
history
diff --git
a/src/softmagic.c
b/src/softmagic.c
index 0172ba2507f8003afe061c45ecc9d6aa44d5aaee..6de903b8c3a873befc21227cf07b5e282c475bb6 100644
(file)
--- a/
src/softmagic.c
+++ b/
src/softmagic.c
@@
-44,7
+44,7
@@
#ifndef lint
-FILE_RCSID("@(#)$Id: softmagic.c,v 1.6
3 2003/10/15 01:51:24
christos Exp $")
+FILE_RCSID("@(#)$Id: softmagic.c,v 1.6
4 2003/12/31 18:36:22
christos Exp $")
#endif /* lint */
private int match(struct magic_set *, struct magic *, uint32_t,
@@
-133,7
+133,7
@@
match(struct magic_set *ms, struct magic *magic, uint32_t nmagic,
* main entry didn't match,
* flush its continuations
*/
- while (magindex < nmagic &&
+ while (magindex < nmagic
- 1
&&
magic[magindex + 1].cont_level != 0)
magindex++;
continue;