Mercurial > geeqie
diff src/format_canon.c @ 442:4b2d7f9af171
Big whitespaces cleanup:
- drop whitespaces at end of lines
- convert eight spaces to tab at start of lines
- drop spurious spaces mixed with tabs
- remove empty lines at end of files
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 13:04:57 +0000 |
parents | 9995c5fb202a |
children | 48c8e49b571c |
line wrap: on
line diff
--- a/src/format_canon.c Sun Apr 20 10:05:27 2008 +0000 +++ b/src/format_canon.c Sun Apr 20 13:04:57 2008 +0000 @@ -9,7 +9,7 @@ * * Code to add support for Canon CR2 and CRW files, version 0.2 * - * Developed by Daniel M. German, dmgerman at uvic.ca + * Developed by Daniel M. German, dmgerman at uvic.ca * * you can find the sources for this patch at http://turingmachine.org/~dmg/libdcraw/gqview/ * @@ -218,7 +218,7 @@ guint jpeg_offset; jpeg_offset = block_offset + record_offset; - if (len < jpeg_offset + record_length || + if (len < jpeg_offset + record_length || record_length < 4 || memcmp(data + jpeg_offset, "\xff\xd8\xff\xdb", 4) != 0) { @@ -630,5 +630,5 @@ } -#endif +#endif /* not HAVE_EXIV2 */