OLD | NEW |
1 /* png.c - location for general purpose libpng functions | 1 /* png.c - location for general purpose libpng functions |
2 * | 2 * |
3 * Last changed in libpng 1.6.2 [April 25, 2013] | 3 * Last changed in libpng 1.6.2 [April 25, 2013] |
4 * Copyright (c) 1998-2013 Glenn Randers-Pehrson | 4 * Copyright (c) 1998-2013 Glenn Randers-Pehrson |
5 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | 5 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
6 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | 6 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) |
7 * | 7 * |
8 * This code is released under the libpng license. | 8 * This code is released under the libpng license. |
9 * For conditions of distribution and use, see the disclaimer | 9 * For conditions of distribution and use, see the disclaimer |
10 * and license in png.h | 10 * and license in png.h |
(...skipping 4277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4288 { | 4288 { |
4289 /* Utility to log an error. */ | 4289 /* Utility to log an error. */ |
4290 png_safecat(image->message, (sizeof image->message), 0, error_message); | 4290 png_safecat(image->message, (sizeof image->message), 0, error_message); |
4291 image->warning_or_error |= PNG_IMAGE_ERROR; | 4291 image->warning_or_error |= PNG_IMAGE_ERROR; |
4292 png_image_free(image); | 4292 png_image_free(image); |
4293 return 0; | 4293 return 0; |
4294 } | 4294 } |
4295 | 4295 |
4296 #endif /* SIMPLIFIED READ/WRITE */ | 4296 #endif /* SIMPLIFIED READ/WRITE */ |
4297 #endif /* defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) */ | 4297 #endif /* defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) */ |
OLD | NEW |