diff -ru optipng-0.6.2/lib/pngxtern/gif/gifread.c optipng-0.6.2.1/lib/pngxtern/gif/gifread.c
|
old
|
new
|
|
| 219 | 219 | **/ |
| 220 | 220 | static void GIFReadNextExtension(struct GIFExtension *ext, FILE *stream) |
| 221 | 221 | { |
| 222 | | unsigned char *ptr; |
| 223 | | unsigned int len; |
| | 222 | unsigned int offset, len; |
| 224 | 223 | int count, label; |
| 225 | 224 | |
| 226 | 225 | GIF_FGETC(label, stream); |
| … |
… |
|
| 233 | 232 | return; |
| 234 | 233 | } |
| 235 | 234 | |
| 236 | | ptr = ext->Buffer; |
| | 235 | offset = 0; |
| 237 | 236 | len = ext->BufferSize; |
| 238 | 237 | for ( ;; ) |
| 239 | 238 | { |
| … |
… |
|
| 243 | 242 | ext->BufferSize += 1024; |
| 244 | 243 | ext->Buffer = realloc(ext->Buffer, ext->BufferSize); |
| 245 | 244 | } |
| 246 | | count = ReadDataBlock(ptr, stream); |
| | 245 | count = ReadDataBlock(ext->Buffer + offset, stream); |
| 247 | 246 | if (count == 0) |
| 248 | 247 | break; |
| 249 | | ptr += count; |
| | 248 | offset += count; |
| 250 | 249 | len -= count; |
| 251 | 250 | } |
| 252 | 251 | } |
diff -ru optipng-0.6.2/src/optipng.c optipng-0.6.2.1/src/optipng.c
|
old
|
new
|
|
| 542 | 542 | static void |
| 543 | 543 | app_init(void) |
| 544 | 544 | { |
| | 545 | setvbuf(stdout, NULL, _IONBF, 0); |
| 545 | 546 | if (options.log_name != NULL) |
| 546 | 547 | { |
| 547 | 548 | /* Open the log file, line-buffered. */ |
diff -ru optipng-0.6.2/src/proginfo.h optipng-0.6.2.1/src/proginfo.h
|
old
|
new
|
|
| 1 | 1 | #define PROGRAM_NAME "OptiPNG" |
| 2 | 2 | #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" |
| 5 | 5 | #define PROGRAM_URI "http://optipng.sourceforge.net/" |