From c92f959ae1fc9718bc29a7ac7558d325366fc4f5 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 25 Feb 2003 13:04:32 +0000 Subject: [PATCH] Fix syntax error in previous fix. --- src/softmagic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/softmagic.c b/src/softmagic.c index 9d0a7805..d1ef94dd 100644 --- a/src/softmagic.c +++ b/src/softmagic.c @@ -34,7 +34,7 @@ #ifndef lint -FILE_RCSID("@(#)$Id: softmagic.c,v 1.53 2003/02/14 21:39:26 christos Exp $") +FILE_RCSID("@(#)$Id: softmagic.c,v 1.54 2003/02/25 13:04:32 christos Exp $") #endif /* lint */ static int match(struct magic *, uint32_t, unsigned char *, int); @@ -138,7 +138,7 @@ match(struct magic *magic, uint32_t nmagic, unsigned char *s, int nbytes) /* and any continuations that match */ if (++cont_level >= tmplen) if ((tmpoff = (int32_t *) realloc(tmpoff, - (tmplen += 20) * sizeof(*tmpoff)) == NULL) + (tmplen += 20) * sizeof(*tmpoff))) == NULL) error("out of memory\n"); while (magic[magindex+1].cont_level != 0 && ++magindex < nmagic) { -- 2.40.0