From ccb272200cf62909f57836993c55f111614119b6 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 11 Apr 2013 19:38:44 +0200 Subject: [PATCH] PhotoRec: a text file must contains several lines --- src/file_txt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/file_txt.c b/src/file_txt.c index 909d4304..6fbe36ac 100644 --- a/src/file_txt.c +++ b/src/file_txt.c @@ -941,6 +941,18 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff l=UTF2Lat((unsigned char*)buffer_lower, buffer, buffer_size_test); if(l<10) return 0; + { + unsigned int line_nbr=0; + unsigned int i; + for(i=0; i<512 && i