Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 185810 | Differences between
and this patch

Collapse All | Expand All

(-)ocr-voronoi/read_image.cc (-2 / +2 lines)
Lines 102-108 Link Here
102
    */
102
    */
103
    int tiff_p(char* fname)
103
    int tiff_p(char* fname)
104
    {
104
    {
105
        TIFFHeader hdr;
105
        TIFFHeaderClassic hdr;
106
        int fd;
106
        int fd;
107
107
108
        if((fd=open(fname, O_RDONLY|O_BINARY,0))<0){
108
        if((fd=open(fname, O_RDONLY|O_BINARY,0))<0){
Lines 119-125 Link Here
119
           hdr.tiff_magic != TIFF_LITTLEENDIAN){
119
           hdr.tiff_magic != TIFF_LITTLEENDIAN){
120
            return(NO);
120
            return(NO);
121
        }
121
        }
122
        if(hdr.tiff_version != TIFF_VERSION &&
122
        if(hdr.tiff_version != TIFF_VERSION_CLASSIC &&
123
           hdr.tiff_version != II_TIFF_VER){
123
           hdr.tiff_version != II_TIFF_VER){
124
            return(NO);
124
            return(NO);
125
        }
125
        }

Return to bug 185810