New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #19498: optipng-0.6.2.1.diff

File optipng-0.6.2.1.diff, 1.9 KB (added by jmr@…, 3 years ago)
  • lib/pngxtern/gif/gifread.c

    diff -ru optipng-0.6.2/lib/pngxtern/gif/gifread.c optipng-0.6.2.1/lib/pngxtern/gif/gifread.c
    old new  
    219219 **/ 
    220220static void GIFReadNextExtension(struct GIFExtension *ext, FILE *stream) 
    221221{ 
    222     unsigned char *ptr; 
    223     unsigned int len; 
     222    unsigned int offset, len; 
    224223    int count, label; 
    225224 
    226225    GIF_FGETC(label, stream); 
     
    233232        return; 
    234233    } 
    235234 
    236     ptr = ext->Buffer; 
     235    offset = 0; 
    237236    len = ext->BufferSize; 
    238237    for ( ;; ) 
    239238    { 
     
    243242            ext->BufferSize += 1024; 
    244243            ext->Buffer = realloc(ext->Buffer, ext->BufferSize); 
    245244        } 
    246         count = ReadDataBlock(ptr, stream); 
     245        count = ReadDataBlock(ext->Buffer + offset, stream); 
    247246        if (count == 0) 
    248247            break; 
    249         ptr += count; 
     248        offset += count; 
    250249        len -= count; 
    251250    } 
    252251} 
  • src/optipng.c

    diff -ru optipng-0.6.2/src/optipng.c optipng-0.6.2.1/src/optipng.c
    old new  
    542542static void 
    543543app_init(void) 
    544544{ 
     545    setvbuf(stdout, NULL, _IONBF, 0); 
    545546    if (options.log_name != NULL) 
    546547    { 
    547548        /* Open the log file, line-buffered. */ 
  • src/proginfo.h

    diff -ru optipng-0.6.2/src/proginfo.h optipng-0.6.2.1/src/proginfo.h
    old new  
    11#define PROGRAM_NAME        "OptiPNG" 
    22#define PROGRAM_DESCRIPTION "Advanced PNG optimizer" 
    3 #define PROGRAM_VERSION     "0.6.2" 
    4 #define PROGRAM_COPYRIGHT   "Copyright (C) 2001-2008 Cosmin Truta" 
     3#define PROGRAM_VERSION     "0.6.2.1" 
     4#define PROGRAM_COPYRIGHT   "Copyright (C) 2001-2009 Cosmin Truta" 
    55#define PROGRAM_URI         "http://optipng.sourceforge.net/"