summaryrefslogtreecommitdiffstats
path: root/src/file_tiff_le.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_tiff_le.c')
-rw-r--r--src/file_tiff_le.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_tiff_le.c b/src/file_tiff_le.c
index b0dfda3..9ae9d60 100644
--- a/src/file_tiff_le.c
+++ b/src/file_tiff_le.c
@@ -522,7 +522,7 @@ int header_check_tiff_le_new(const unsigned char *buffer, const unsigned int buf
/* TODO
* sr2 if Sony::FileFormat begins by 1
* arw otherwise */
- if(strcmp(tag_make, "SONY")==0)
+ if(memcmp(tag_make, "SONY", 5)==0)
file_recovery_new->extension="sr2";
else if(strncmp(tag_make, "SONY ",5)==0)
file_recovery_new->extension="arw";