Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 602048
Collapse All | Expand All

(-)zipinfo.c.orig (-1 / +5 lines)
Lines 1921-1927 Link Here
1921
        ush  dnum=(ush)((G.crec.general_purpose_bit_flag>>1) & 3);
1921
        ush  dnum=(ush)((G.crec.general_purpose_bit_flag>>1) & 3);
1922
        methbuf[3] = dtype[dnum];
1922
        methbuf[3] = dtype[dnum];
1923
    } else if (methnum >= NUM_METHODS) {   /* unknown */
1923
    } else if (methnum >= NUM_METHODS) {   /* unknown */
1924
        sprintf(&methbuf[1], "%03u", G.crec.compression_method);
1924
        if (G.crec.compression_method <= 999) {
1925
            sprintf( &methbuf[ 1], "%03u", G.crec.compression_method);
1926
        } else {
1927
            sprintf( &methbuf[ 0], "%04X", G.crec.compression_method);
1928
        }
1925
    }
1929
    }
1926
1930
1927
    for (k = 0;  k < 15;  ++k)
1931
    for (k = 0;  k < 15;  ++k)

Return to bug 602048