]> granicus.if.org Git - php/commitdiff
fix borked mainstream patch
authorAnatol Belski <ab@php.net>
Wed, 30 Mar 2016 23:33:38 +0000 (01:33 +0200)
committerAnatol Belski <ab@php.net>
Wed, 30 Mar 2016 23:33:38 +0000 (01:33 +0200)
ext/fileinfo/libmagic/funcs.c

index def2f7b31bcbadaafd00e0418ed50c9505309c28..b976ac9a49b7d4e7950516030049a963f840bcf2 100644 (file)
@@ -414,7 +414,7 @@ file_check_mem(struct magic_set *ms, unsigned int level)
        size_t len;
 
        if (level >= ms->c.len) {
-               len = (ms->c.len += 20 + level) * sizeof(*ms->c.li);
+               len = (ms->c.len = 20 + level) * sizeof(*ms->c.li);
                ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ?
                    emalloc(len) :
                    erealloc(ms->c.li, len));